[1547] | 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 80 |
---|
| 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 | } |
---|
| 51 | } |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | technique indirectTexturingWithVisibilityLOD1 |
---|
| 55 | { |
---|
| 56 | lod_index 1 |
---|
| 57 | pass |
---|
| 58 | { |
---|
| 59 | alpha_rejection greater_equal 80 |
---|
| 60 | cull_hardware none |
---|
| 61 | cull_software none |
---|
| 62 | lighting off |
---|
| 63 | |
---|
| 64 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
| 65 | { |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
| 69 | { |
---|
| 70 | param_named sourceTextureSize float 16.0 |
---|
| 71 | param_named sqrtNumSamples float 4.0 |
---|
| 72 | param_named greyRange float 1.57987 |
---|
| 73 | param_named absGreyMin float 0.280774 |
---|
| 74 | param_named epsilonX float -0.121 |
---|
| 75 | param_named epsilonY float 0.1205 |
---|
| 76 | |
---|
| 77 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
| 78 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
| 79 | param_named_auto p_LightPower light_power 0 |
---|
| 80 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
| 81 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
| 82 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | texture_unit |
---|
| 86 | { |
---|
| 87 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0.png |
---|
| 88 | filtering none |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | texture_unit |
---|
| 92 | { |
---|
| 93 | texture chestnutRotatedLeafAtlasDefault128.png |
---|
| 94 | filtering linear linear none |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | texture_unit |
---|
| 98 | { |
---|
| 99 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
| 100 | } |
---|
| 101 | } |
---|
| 102 | } |
---|
| 103 | } |
---|
| 104 | |
---|
| 105 | material chestnutLeavesVisibilityBillboardCloudGroupedIndirectTexturingMaterial0_32 |
---|
| 106 | { |
---|
| 107 | technique indirectTexturingWithVisibilityLOD0 |
---|
| 108 | { |
---|
| 109 | pass |
---|
| 110 | { |
---|
| 111 | alpha_rejection greater_equal 80 |
---|
| 112 | cull_hardware none |
---|
| 113 | cull_software none |
---|
| 114 | lighting off |
---|
| 115 | |
---|
| 116 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
| 117 | { |
---|
| 118 | } |
---|
| 119 | |
---|
| 120 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
| 121 | { |
---|
| 122 | param_named sourceTextureSize float 16.0 |
---|
| 123 | param_named sqrtNumSamples float 4.0 |
---|
| 124 | param_named greyRange float 1.57987 |
---|
| 125 | param_named absGreyMin float 0.280774 |
---|
| 126 | param_named epsilonX float -0.121 |
---|
| 127 | param_named epsilonY float 0.1205 |
---|
| 128 | |
---|
| 129 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
| 130 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
| 131 | param_named_auto p_LightPower light_power 0 |
---|
| 132 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
| 133 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
| 134 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
| 135 | } |
---|
| 136 | |
---|
| 137 | texture_unit |
---|
| 138 | { |
---|
| 139 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0_32.png |
---|
| 140 | filtering none |
---|
| 141 | } |
---|
| 142 | |
---|
| 143 | texture_unit |
---|
| 144 | { |
---|
| 145 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 146 | } |
---|
| 147 | |
---|
| 148 | texture_unit |
---|
| 149 | { |
---|
| 150 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0_32.png |
---|
| 151 | } |
---|
| 152 | texture_unit |
---|
| 153 | { |
---|
| 154 | texture Random3D.dds |
---|
| 155 | } |
---|
| 156 | } |
---|
| 157 | } |
---|
| 158 | } |
---|
| 159 | |
---|
| 160 | material chestnutLeavesVisibilityBillboardCloudGroupedIndirectTexturingMaterial0_64 |
---|
| 161 | { |
---|
| 162 | technique indirectTexturingWithVisibilityLOD0 |
---|
| 163 | { |
---|
| 164 | pass |
---|
| 165 | { |
---|
| 166 | alpha_rejection greater_equal 80 |
---|
| 167 | cull_hardware none |
---|
| 168 | cull_software none |
---|
| 169 | lighting off |
---|
| 170 | |
---|
| 171 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
| 172 | { |
---|
| 173 | } |
---|
| 174 | |
---|
| 175 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
| 176 | { |
---|
| 177 | param_named sourceTextureSize float 16.0 |
---|
| 178 | param_named sqrtNumSamples float 4.0 |
---|
| 179 | param_named greyRange float 1.57987 |
---|
| 180 | param_named absGreyMin float 0.280774 |
---|
| 181 | param_named epsilonX float -0.121 |
---|
| 182 | param_named epsilonY float 0.1205 |
---|
| 183 | |
---|
| 184 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
| 185 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
| 186 | param_named_auto p_LightPower light_power 0 |
---|
| 187 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
| 188 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
| 189 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
| 190 | } |
---|
| 191 | |
---|
| 192 | texture_unit |
---|
| 193 | { |
---|
| 194 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0_64.png |
---|
| 195 | filtering none |
---|
| 196 | } |
---|
| 197 | |
---|
| 198 | texture_unit |
---|
| 199 | { |
---|
| 200 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 201 | } |
---|
| 202 | |
---|
| 203 | texture_unit |
---|
| 204 | { |
---|
| 205 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0_64.png |
---|
| 206 | } |
---|
| 207 | texture_unit |
---|
| 208 | { |
---|
| 209 | texture Random3D.dds |
---|
| 210 | } |
---|
| 211 | } |
---|
| 212 | } |
---|
| 213 | } |
---|
| 214 | |
---|
| 215 | material chestnutLeavesBillboardCloudGroupMaterial0 |
---|
| 216 | { |
---|
| 217 | lod_distances 400 |
---|
| 218 | |
---|
| 219 | // DIRECTX/HLSL Indirect texture default |
---|
| 220 | // This technique render the billboard cloud using the indirect texturing |
---|
| 221 | // approach leading to high resolution leaves |
---|
| 222 | technique indirectTexturingLightingFiltering_HLSL |
---|
| 223 | { |
---|
| 224 | lod_index 0 |
---|
| 225 | pass |
---|
| 226 | { |
---|
| 227 | alpha_rejection greater_equal 110 |
---|
| 228 | cull_hardware none |
---|
| 229 | cull_software none |
---|
| 230 | lighting off |
---|
| 231 | |
---|
| 232 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
| 233 | { |
---|
| 234 | param_named_auto worldviewproj worldviewproj_matrix |
---|
| 235 | param_named_auto lightPosition light_position_object_space 0 |
---|
| 236 | param_named_auto eyePosition camera_position_object_space |
---|
| 237 | } |
---|
| 238 | |
---|
| 239 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
| 240 | { |
---|
| 241 | param_named sourceTextureSize float 16.0 |
---|
| 242 | param_named sqrtNumSamples float 4.0 |
---|
| 243 | param_named_auto ambientColor ambient_light_colour |
---|
| 244 | param_named ambient float 0.3 |
---|
| 245 | } |
---|
| 246 | |
---|
| 247 | texture_unit |
---|
| 248 | { |
---|
| 249 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
| 250 | filtering none |
---|
| 251 | } |
---|
| 252 | |
---|
| 253 | texture_unit |
---|
| 254 | { |
---|
| 255 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 256 | //filtering none |
---|
| 257 | } |
---|
| 258 | } |
---|
| 259 | } |
---|
| 260 | |
---|
| 261 | // DIRECTX/HLSL Indirect texture default |
---|
| 262 | // This technique render the billboard cloud using the indirect texturing |
---|
| 263 | // approach leading to high resolution leaves |
---|
| 264 | technique indirectTexturingLightingNoFiltering_HLSL |
---|
| 265 | { |
---|
| 266 | lod_index 1 |
---|
| 267 | pass |
---|
| 268 | { |
---|
| 269 | alpha_rejection greater_equal 110 |
---|
| 270 | cull_hardware none |
---|
| 271 | cull_software none |
---|
| 272 | lighting off |
---|
| 273 | |
---|
| 274 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
| 275 | { |
---|
| 276 | param_named_auto worldviewproj worldviewproj_matrix |
---|
| 277 | param_named_auto lightPosition light_position_object_space 0 |
---|
| 278 | param_named_auto eyePosition camera_position_object_space |
---|
| 279 | } |
---|
| 280 | |
---|
| 281 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
| 282 | { |
---|
| 283 | param_named sourceTextureSize float 16.0 |
---|
| 284 | param_named sqrtNumSamples float 4.0 |
---|
| 285 | param_named_auto ambientColor ambient_light_colour |
---|
| 286 | param_named ambient float 0.3 |
---|
| 287 | } |
---|
| 288 | |
---|
| 289 | texture_unit |
---|
| 290 | { |
---|
| 291 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
| 292 | filtering none |
---|
| 293 | } |
---|
| 294 | |
---|
| 295 | texture_unit |
---|
| 296 | { |
---|
| 297 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 298 | filtering none |
---|
| 299 | } |
---|
| 300 | } |
---|
| 301 | } |
---|
| 302 | } |
---|