-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/Temp/ | ||
/LIbrary/ | ||
/Logs/ | ||
/Packages/ | ||
/Usersettings/ | ||
|
||
.vs/ | ||
.vscode/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Shader "DoubleSided" { | ||
Properties{ | ||
_Color("Main Color", Color) = (1,1,1,1) | ||
_MainTex("Base (RGB)", 2D) = "white" {} | ||
//_BumpMap ("Bump (RGB) Illumin (A)", 2D) = "bump" {} | ||
} | ||
SubShader{ | ||
//UsePass "Self-Illumin/VertexLit/BASE" | ||
//UsePass "Bumped Diffuse/PPL" | ||
|
||
// Ambient pass | ||
Pass{ | ||
Name "BASE" | ||
Tags{ "LightMode" = "Always" /* Upgrade NOTE: changed from PixelOrNone to Always */ } | ||
Color[_PPLAmbient] | ||
SetTexture[_BumpMap]{ | ||
constantColor(.5,.5,.5) | ||
combine constant lerp(texture) previous | ||
} | ||
SetTexture[_MainTex]{ | ||
constantColor[_Color] | ||
Combine texture * previous DOUBLE, texture*constant | ||
} | ||
} | ||
|
||
// Vertex lights | ||
Pass{ | ||
Name "BASE" | ||
Tags{ "LightMode" = "Vertex" } | ||
Material{ | ||
Diffuse[_Color] | ||
Emission[_PPLAmbient] | ||
Shininess[_Shininess] | ||
Specular[_SpecColor] | ||
} | ||
SeparateSpecular On | ||
Lighting On | ||
Cull Off | ||
SetTexture[_BumpMap]{ | ||
constantColor(.5,.5,.5) | ||
combine constant lerp(texture) previous | ||
} | ||
SetTexture[_MainTex]{ | ||
Combine texture * previous DOUBLE, texture*primary | ||
} | ||
} | ||
} | ||
FallBack "Diffuse", 1 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.