|
|
|
|
|
|
|
|
|
|
// enable dithering LOD crossfade |
|
|
|
#pragma multi_compile _ LOD_FADE_CROSSFADE |
|
|
|
// TODO: We should have this keyword only if VelocityInGBuffer is enable, how to do that ? |
|
|
|
//#pragma multi_compile VELOCITYOUTPUT_OFF VELOCITYOUTPUT_ON |
|
|
|
|
|
|
|
//------------------------------------------------------------------------------------- |
|
|
|
// Define |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
|
|
|
|
#define SHADERPASS SHADERPASS_GBUFFER |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
|
|
|
|
#define SHADERPASS SHADERPASS_GBUFFER |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
|
|
|
|
#define DEBUG_DISPLAY |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
// #include "../../Lighting/Forward.hlsl" |
|
|
|
#pragma multi_compile LIGHTLOOP_SINGLE_PASS LIGHTLOOP_TILE_PASS |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
// #include "../../Lighting/Forward.hlsl" |
|
|
|
#pragma multi_compile LIGHTLOOP_SINGLE_PASS LIGHTLOOP_TILE_PASS |
|
|
|
|
|
|
|
|
|
|
HLSLPROGRAM |
|
|
|
|
|
|
|
#pragma multi_compile LIGHTMAP_OFF LIGHTMAP_ON |
|
|
|
#pragma multi_compile DIRLIGHTMAP_OFF DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile DYNAMICLIGHTMAP_OFF DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ LIGHTMAP_ON |
|
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED |
|
|
|
#pragma multi_compile _ DYNAMICLIGHTMAP_ON |
|
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK |
|
|
|
// #include "../../Lighting/Forward.hlsl" |
|
|
|
#pragma multi_compile LIGHTLOOP_SINGLE_PASS LIGHTLOOP_TILE_PASS |
|
|
|