You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.4 KiB
64 lines
1.4 KiB
3 years ago
|
// Marmoset Skyshop
|
||
|
// Copyright 2013 Marmoset LLC
|
||
|
// http://marmoset.co
|
||
|
|
||
|
Shader "Marmoset/Diffuse IBL" {
|
||
|
Properties {
|
||
|
_Color ("Diffuse Color", Color) = (1,1,1,1)
|
||
|
_MainTex ("Diffuse(RGB) Alpha(A)", 2D) = "white" {}
|
||
|
|
||
|
}
|
||
|
|
||
|
SubShader {
|
||
|
Tags {
|
||
|
"Queue"="Geometry"
|
||
|
"RenderType"="Opaque"
|
||
|
}
|
||
|
LOD 200
|
||
|
//diffuse LOD 200
|
||
|
//diffuse-spec LOD 250
|
||
|
//bumped-diffuse, spec 350
|
||
|
//bumped-spec 400
|
||
|
|
||
|
//mac stuff
|
||
|
CGPROGRAM
|
||
|
#ifdef SHADER_API_OPENGL
|
||
|
#pragma glsl
|
||
|
#endif
|
||
|
|
||
|
#pragma target 3.0
|
||
|
#pragma exclude_renderers gles d3d11_9x flash
|
||
|
#pragma surface MarmosetSurf MarmosetDirect vertex:MarmosetVert fullforwardshadows
|
||
|
//gamma-correct sampling permutations
|
||
|
|
||
|
#pragma multi_compile MARMO_SKY_BLEND_OFF MARMO_SKY_BLEND_ON
|
||
|
#if MARMO_SKY_BLEND_ON
|
||
|
#define MARMO_SKY_BLEND
|
||
|
#endif
|
||
|
|
||
|
#define MARMO_HQ
|
||
|
#define MARMO_SKY_ROTATION
|
||
|
#define MARMO_DIFFUSE_IBL
|
||
|
//#define MARMO_SPECULAR_IBL
|
||
|
#define MARMO_DIFFUSE_DIRECT
|
||
|
//#define MARMO_SPECULAR_DIRECT
|
||
|
//#define MARMO_NORMALMAP
|
||
|
//#define MARMO_MIP_GLOSS
|
||
|
//#define MARMO_GLOW
|
||
|
//#define MARMO_PREMULT_ALPHA
|
||
|
//#define MARMO_OCCLUSION
|
||
|
//#define MARMO_VERTEX_OCCLUSION
|
||
|
//#define MARMO_VERTEX_COLOR
|
||
|
//#define MARMO_SPECULAR_FILTER
|
||
|
|
||
|
#include "MarmosetInput.cginc"
|
||
|
#include "MarmosetCore.cginc"
|
||
|
#include "MarmosetDirect.cginc"
|
||
|
#include "MarmosetSurf.cginc"
|
||
|
|
||
|
ENDCG
|
||
|
}
|
||
|
|
||
|
FallBack "Diffuse"
|
||
|
}
|