Files
ProjectBall.Unity/Assets/Standard Assets (Mobile)/Shaders/Lightmap Shaders (Legacy)/Mobile Lightmap AlphaTest.shader
T

31 lines
634 B
GLSL
Raw Normal View History

2025-05-13 05:18:03 +03:00
Shader "Mobile/Legacy/Lightmap/Lightmap AlphaTest"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
_LightMap ("Lightmap (RGB)", 2D) = "white" { LightmapMode }
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
}
SubShader
{
Pass
{
Name "BASE"
Alphatest Greater [_Cutoff]
BindChannels {
Bind "Vertex", vertex
Bind "texcoord1", texcoord0 // lightmap uses 2nd uv
Bind "texcoord", texcoord1 // main uses 1st uv
}
SetTexture [_LightMap] {
combine texture
}
SetTexture [_MainTex] {
combine texture * previous, texture
}
}
}
}