Line | |
---|
1 | material scientist_base
|
---|
2 | {
|
---|
3 | technique main
|
---|
4 | {
|
---|
5 | pass indirect
|
---|
6 | {
|
---|
7 | IllumTechniques
|
---|
8 | {
|
---|
9 |
|
---|
10 | RenderTechnique DistanceCubeMap
|
---|
11 | {
|
---|
12 | update_interval 0
|
---|
13 | update_all_face true
|
---|
14 | distance_calc false
|
---|
15 | face_angle_calc false
|
---|
16 | resolution 128
|
---|
17 | }
|
---|
18 | RenderTechnique ReducedColorCubeMap
|
---|
19 | {
|
---|
20 | update_interval 1
|
---|
21 | reduced_resolution 4
|
---|
22 | resolution 128
|
---|
23 | distance_calc false
|
---|
24 | face_angle_calc false
|
---|
25 | update_all_face true
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 | vertex_program_ref GTP/Basic/Shaded_VS
|
---|
30 | {
|
---|
31 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
32 | param_named_auto WorldInv inverse_world_matrix
|
---|
33 | param_named_auto World world_matrix
|
---|
34 |
|
---|
35 | }
|
---|
36 | fragment_program_ref GTP/Diffuse/Disc2Point_PS
|
---|
37 | {
|
---|
38 | param_named_auto cameraPos camera_position
|
---|
39 | param_named lastCenter float3 0 0 0
|
---|
40 | }
|
---|
41 | //Cube map for reflections and refractions
|
---|
42 | texture_unit
|
---|
43 | {
|
---|
44 |
|
---|
45 | }
|
---|
46 | //Cube map of distances
|
---|
47 | texture_unit
|
---|
48 | {
|
---|
49 |
|
---|
50 | }
|
---|
51 | }
|
---|
52 | pass indirect_color
|
---|
53 | {
|
---|
54 | lighting off
|
---|
55 | depth_bias 1
|
---|
56 | depth_write on
|
---|
57 | scene_blend dest_colour zero
|
---|
58 | texture_unit color
|
---|
59 | {
|
---|
60 |
|
---|
61 | }
|
---|
62 | }
|
---|
63 | pass direct
|
---|
64 | {
|
---|
65 | depth_bias 2
|
---|
66 | ambient 0 0 0 1
|
---|
67 | diffuse 0.3 0.3 0.3 1
|
---|
68 | specular 0 0 0 0
|
---|
69 | scene_blend add
|
---|
70 | depth_write on
|
---|
71 | texture_unit color
|
---|
72 | {
|
---|
73 |
|
---|
74 |
|
---|
75 | }
|
---|
76 | }
|
---|
77 | }
|
---|
78 | }
|
---|
79 |
|
---|
80 | material scientist_body : scientist_base
|
---|
81 | {
|
---|
82 | technique main
|
---|
83 | {
|
---|
84 | pass indirect_color
|
---|
85 | {
|
---|
86 | texture_unit color
|
---|
87 | {
|
---|
88 | texture scientist_body.bmp
|
---|
89 | }
|
---|
90 | }
|
---|
91 | pass direct
|
---|
92 | {
|
---|
93 | texture_unit color
|
---|
94 | {
|
---|
95 | texture scientist_body.bmp
|
---|
96 | }
|
---|
97 | }
|
---|
98 |
|
---|
99 | }
|
---|
100 |
|
---|
101 | }
|
---|
102 |
|
---|
103 | material scientist_glass : scientist_base
|
---|
104 | {
|
---|
105 | technique main
|
---|
106 | {
|
---|
107 | pass indirect_color
|
---|
108 | {
|
---|
109 | texture_unit color
|
---|
110 | {
|
---|
111 | texture scientist_chrome.bmp
|
---|
112 | }
|
---|
113 | }
|
---|
114 | pass direct
|
---|
115 | {
|
---|
116 | texture_unit color
|
---|
117 | {
|
---|
118 | texture scientist_chrome.bmp
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 | }
|
---|
123 |
|
---|
124 | }
|
---|
125 |
|
---|
126 | material scientist_head : scientist_base
|
---|
127 | {
|
---|
128 | technique main
|
---|
129 | {
|
---|
130 | pass indirect_color
|
---|
131 | {
|
---|
132 | texture_unit color
|
---|
133 | {
|
---|
134 | texture scientist_head.bmp
|
---|
135 | }
|
---|
136 | }
|
---|
137 | pass direct
|
---|
138 | {
|
---|
139 | texture_unit color
|
---|
140 | {
|
---|
141 | texture scientist_head.bmp
|
---|
142 | }
|
---|
143 | }
|
---|
144 |
|
---|
145 | }
|
---|
146 |
|
---|
147 | }
|
---|
148 |
|
---|
149 |
|
---|
150 |
|
---|
151 |
|
---|
152 |
|
---|
153 |
|
---|
154 |
|
---|
155 |
|
---|
156 |
|
---|
157 | |
---|
Note: See
TracBrowser
for help on using the repository browser.