blob: 495ce6275fa522d15c9342dbdbede64e1aa25e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
Shader "Diffuse - Always visible" {
Properties {
_NotVisibleColor ("X-ray color (RGB)", Color) = (0,1,0,1)
_Color ("Main Color",Color) = (0.5,0.5,0.5,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Opaque-1" }
LOD 200
Pass {
ZTest LEqual
Material {
Diffuse [_Color]
Ambient [_Color]
}
Lighting On
SetTexture [_MainTex] {
Combine texture * primary DOUBLE, texture * primary
}
}
Pass {
ZTest Greater
Material {
Diffuse [_NotVisibleColor]
}
Color [_NotVisibleColor]
}
}
FallBack "Diffuse"
}
|