1 | material chestnutLeavesVisibilityBillboardCloudGroupedIndirectTexturingMaterialLOD0 |
---|
2 | { |
---|
3 | lod_distances 80 |
---|
4 | |
---|
5 | technique indirectTexturingWithVisibilityLOD0 |
---|
6 | { |
---|
7 | lod_index 0 |
---|
8 | pass |
---|
9 | { |
---|
10 | alpha_rejection greater_equal 110 |
---|
11 | cull_hardware none |
---|
12 | cull_software none |
---|
13 | lighting off |
---|
14 | |
---|
15 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
16 | { |
---|
17 | } |
---|
18 | |
---|
19 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
20 | { |
---|
21 | param_named sourceTextureSize float 16.0 |
---|
22 | param_named sqrtNumSamples float 4.0 |
---|
23 | param_named greyRange float 1.57987 |
---|
24 | param_named absGreyMin float 0.280774 |
---|
25 | param_named epsilonX float -0.121 |
---|
26 | param_named epsilonY float 0.1205 |
---|
27 | |
---|
28 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
29 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
30 | param_named_auto p_LightPower light_power 0 |
---|
31 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
32 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
33 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
34 | } |
---|
35 | |
---|
36 | texture_unit |
---|
37 | { |
---|
38 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0.png |
---|
39 | filtering none |
---|
40 | } |
---|
41 | |
---|
42 | texture_unit |
---|
43 | { |
---|
44 | texture chestnutRotatedLeafAtlasDefault.png |
---|
45 | } |
---|
46 | |
---|
47 | texture_unit |
---|
48 | { |
---|
49 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
50 | filtering none |
---|
51 | } |
---|
52 | } |
---|
53 | } |
---|
54 | |
---|
55 | technique indirectTexturingWithVisibilityLOD1 |
---|
56 | { |
---|
57 | lod_index 1 |
---|
58 | pass |
---|
59 | { |
---|
60 | alpha_rejection greater_equal 110 |
---|
61 | cull_hardware none |
---|
62 | cull_software none |
---|
63 | lighting off |
---|
64 | |
---|
65 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
66 | { |
---|
67 | } |
---|
68 | |
---|
69 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
70 | { |
---|
71 | param_named sourceTextureSize float 16.0 |
---|
72 | param_named sqrtNumSamples float 4.0 |
---|
73 | param_named greyRange float 1.57987 |
---|
74 | param_named absGreyMin float 0.280774 |
---|
75 | param_named epsilonX float -0.121 |
---|
76 | param_named epsilonY float 0.1205 |
---|
77 | |
---|
78 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
79 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
80 | param_named_auto p_LightPower light_power 0 |
---|
81 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
82 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
83 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
84 | } |
---|
85 | |
---|
86 | texture_unit |
---|
87 | { |
---|
88 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0.png |
---|
89 | filtering none |
---|
90 | } |
---|
91 | |
---|
92 | texture_unit |
---|
93 | { |
---|
94 | texture chestnutRotatedLeafAtlasDefault.png |
---|
95 | } |
---|
96 | |
---|
97 | texture_unit |
---|
98 | { |
---|
99 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
100 | filtering none |
---|
101 | } |
---|
102 | } |
---|
103 | } |
---|
104 | } |
---|
105 | |
---|
106 | material chestnutLeavesVisibilityBillboardCloudGroupedIndirectTexturingMaterial0 |
---|
107 | { |
---|
108 | technique indirectTexturingWithVisibility |
---|
109 | { |
---|
110 | pass |
---|
111 | { |
---|
112 | alpha_rejection greater_equal 110 |
---|
113 | cull_hardware none |
---|
114 | cull_software none |
---|
115 | lighting off |
---|
116 | |
---|
117 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
118 | { |
---|
119 | } |
---|
120 | |
---|
121 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
122 | { |
---|
123 | param_named sourceTextureSize float 16.0 |
---|
124 | param_named sqrtNumSamples float 4.0 |
---|
125 | param_named greyRange float 1.57987 |
---|
126 | param_named absGreyMin float 0.280774 |
---|
127 | param_named epsilonX float -0.121 |
---|
128 | param_named epsilonY float 0.1205 |
---|
129 | |
---|
130 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
131 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
132 | param_named_auto p_LightPower light_power 0 |
---|
133 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
134 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
135 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
136 | } |
---|
137 | |
---|
138 | texture_unit |
---|
139 | { |
---|
140 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0.png |
---|
141 | filtering none |
---|
142 | } |
---|
143 | |
---|
144 | texture_unit |
---|
145 | { |
---|
146 | texture chestnutRotatedLeafAtlasDefault.png |
---|
147 | } |
---|
148 | |
---|
149 | texture_unit |
---|
150 | { |
---|
151 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
152 | filtering none |
---|
153 | } |
---|
154 | } |
---|
155 | } |
---|
156 | } |
---|
157 | |
---|
158 | material chestnutLeavesBillboardCloudGroupMaterial0 |
---|
159 | { |
---|
160 | lod_distances 400 |
---|
161 | |
---|
162 | // DIRECTX/HLSL Indirect texture default |
---|
163 | // This technique render the billboard cloud using the indirect texturing |
---|
164 | // approach leading to high resolution leaves |
---|
165 | technique indirectTexturingLightingFiltering_HLSL |
---|
166 | { |
---|
167 | lod_index 0 |
---|
168 | pass |
---|
169 | { |
---|
170 | alpha_rejection greater_equal 110 |
---|
171 | cull_hardware none |
---|
172 | cull_software none |
---|
173 | lighting off |
---|
174 | |
---|
175 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
176 | { |
---|
177 | param_named_auto worldviewproj worldviewproj_matrix |
---|
178 | param_named_auto lightPosition light_position_object_space 0 |
---|
179 | param_named_auto eyePosition camera_position_object_space |
---|
180 | } |
---|
181 | |
---|
182 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
183 | { |
---|
184 | param_named sourceTextureSize float 16.0 |
---|
185 | param_named sqrtNumSamples float 4.0 |
---|
186 | param_named_auto ambientColor ambient_light_colour |
---|
187 | param_named ambient float 0.3 |
---|
188 | } |
---|
189 | |
---|
190 | texture_unit |
---|
191 | { |
---|
192 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
193 | filtering none |
---|
194 | } |
---|
195 | |
---|
196 | texture_unit |
---|
197 | { |
---|
198 | texture chestnutRotatedLeafAtlasDefault.png |
---|
199 | //filtering none |
---|
200 | } |
---|
201 | } |
---|
202 | } |
---|
203 | |
---|
204 | // DIRECTX/HLSL Indirect texture default |
---|
205 | // This technique render the billboard cloud using the indirect texturing |
---|
206 | // approach leading to high resolution leaves |
---|
207 | technique indirectTexturingLightingNoFiltering_HLSL |
---|
208 | { |
---|
209 | lod_index 1 |
---|
210 | pass |
---|
211 | { |
---|
212 | alpha_rejection greater_equal 110 |
---|
213 | cull_hardware none |
---|
214 | cull_software none |
---|
215 | lighting off |
---|
216 | |
---|
217 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
218 | { |
---|
219 | param_named_auto worldviewproj worldviewproj_matrix |
---|
220 | param_named_auto lightPosition light_position_object_space 0 |
---|
221 | param_named_auto eyePosition camera_position_object_space |
---|
222 | } |
---|
223 | |
---|
224 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
225 | { |
---|
226 | param_named sourceTextureSize float 16.0 |
---|
227 | param_named sqrtNumSamples float 4.0 |
---|
228 | param_named_auto ambientColor ambient_light_colour |
---|
229 | param_named ambient float 0.3 |
---|
230 | } |
---|
231 | |
---|
232 | texture_unit |
---|
233 | { |
---|
234 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
235 | filtering none |
---|
236 | } |
---|
237 | |
---|
238 | texture_unit |
---|
239 | { |
---|
240 | texture chestnutRotatedLeafAtlasDefault.png |
---|
241 | filtering none |
---|
242 | } |
---|
243 | } |
---|
244 | } |
---|
245 | } |
---|