Created
April 2, 2014 10:52
-
-
Save aras-p/9931876 to your computer and use it in GitHub Desktop.
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
// SM3.0+ | |
SubShader { | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#pragma target 3.0 | |
#pragma multi_compile_fwdbase | |
#include "MyCode.cginc" | |
ENDCG | |
} | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#pragma target 3.0 | |
#pragma multi_compile_fwdadd | |
#include "MyCode.cginc" | |
ENDCG | |
} | |
} | |
// SM2.0 | |
SubShader { | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#pragma multi_compile_fwdbase nosoftshadows | |
#define USE_SM_20_PATH | |
#include "MyCode.cginc" | |
ENDCG | |
} | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#pragma multi_compile_fwdadd nosoftshadows | |
#define USE_SM_20_PATH | |
#include "MyCode.cginc" | |
ENDCG | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment