/FORWARD_DELTA-pass.shader Secret
Created
March 15, 2015 21:36
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------------------------------------ | |
// Additive forward pass (one light per pass) | |
Pass | |
{ | |
Name "FORWARD_DELTA" | |
Tags { "LightMode" = "ForwardAdd" } | |
Blend [_SrcBlend] One | |
Fog { Color (0,0,0,0) } // in additive pass fog should be black | |
ZWrite Off | |
ZTest LEqual | |
CGPROGRAM | |
#pragma target 3.0 | |
// GLES2.0 temporarily disabled to prevent errors spam on devices without textureCubeLodEXT | |
#pragma exclude_renderers gles | |
// ------------------------------------- | |
#pragma shader_feature _NORMALMAP | |
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON | |
#pragma shader_feature _METALLICGLOSSMAP | |
#pragma shader_feature ___ _DETAIL_MULX2 | |
#pragma shader_feature _PARALLAXMAP | |
#pragma multi_compile_fwdadd_fullshadows | |
#pragma multi_compile_fog | |
#pragma vertex vertForwardAdd | |
#pragma fragment fragForwardAdd | |
#pragma multi_compile __ CLIP_ONE CLIP_TWO CLIP_THREE | |
#include "standard_clipped.cginc" | |
ENDCG | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment