24 lines
472 B
GLSL
24 lines
472 B
GLSL
Shader "Mobile/Diffuse Detail" {
|
|
Properties {
|
|
_Color ("Main Color", Color) = (1,1,1,1)
|
|
_MainTex ("Base (RGB)", 2D) = "white" {}
|
|
_Detail ("Detail (RGB)", 2D) = "gray" {}
|
|
}
|
|
SubShader {
|
|
|
|
Pass{
|
|
|
|
Material{
|
|
Diffuse [_Color]
|
|
}
|
|
|
|
Lighting On
|
|
Fog { Mode Off }
|
|
SetTexture [_MainTex] { combine texture * primary Double, texture * primary}
|
|
SetTexture [_Detail] { combine previous * texture Double, previous}
|
|
}
|
|
|
|
}
|
|
FallBack "VertexLit", 2
|
|
}
|