[1493] | 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 chestnutRotatedLeafAtlasDefault128.png |
---|
| 95 | filtering linear linear none |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | texture_unit |
---|
| 99 | { |
---|
| 100 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
| 101 | filtering none |
---|
| 102 | } |
---|
| 103 | } |
---|
| 104 | } |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | material chestnutLeavesVisibilityBillboardCloudGroupedIndirectTexturingMaterial0 |
---|
| 108 | { |
---|
| 109 | technique indirectTexturingWithVisibility |
---|
| 110 | { |
---|
| 111 | pass |
---|
| 112 | { |
---|
| 113 | alpha_rejection greater_equal 110 |
---|
| 114 | cull_hardware none |
---|
| 115 | cull_software none |
---|
| 116 | lighting off |
---|
| 117 | |
---|
| 118 | vertex_program_ref LightingWithIndirectTexturingVP |
---|
| 119 | { |
---|
| 120 | } |
---|
| 121 | |
---|
| 122 | fragment_program_ref LightingWithIndirectTexturingFP |
---|
| 123 | { |
---|
| 124 | param_named sourceTextureSize float 16.0 |
---|
| 125 | param_named sqrtNumSamples float 4.0 |
---|
| 126 | param_named greyRange float 1.57987 |
---|
| 127 | param_named absGreyMin float 0.280774 |
---|
| 128 | param_named epsilonX float -0.121 |
---|
| 129 | param_named epsilonY float 0.1205 |
---|
| 130 | |
---|
| 131 | param_named_auto p_LightDiffuse light_diffuse_colour 0 |
---|
| 132 | param_named_auto p_LightSpecular light_specular_colour 0 |
---|
| 133 | param_named_auto p_LightPower light_power 0 |
---|
| 134 | //param_named_auto p_ShadowColor ambient_light_colour |
---|
| 135 | param_named p_Diffuse float4 1.0 1.0 1.0 1.0 |
---|
| 136 | param_named p_Specular float4 1.0 1.0 1.0 16 |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | texture_unit |
---|
| 140 | { |
---|
| 141 | texture chestnutLeavesVisibilityIndirectDiffuseColorBillboardGroupAtlas0.png |
---|
| 142 | filtering none |
---|
| 143 | } |
---|
| 144 | |
---|
| 145 | texture_unit |
---|
| 146 | { |
---|
| 147 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 148 | } |
---|
| 149 | |
---|
| 150 | texture_unit |
---|
| 151 | { |
---|
| 152 | texture chestnutLeavesVisibilityIndirectBillboardGroupAtlas0.png |
---|
| 153 | filtering none |
---|
| 154 | } |
---|
| 155 | } |
---|
| 156 | } |
---|
| 157 | } |
---|
| 158 | |
---|
| 159 | material chestnutLeavesBillboardCloudGroupMaterial0 |
---|
| 160 | { |
---|
| 161 | lod_distances 400 |
---|
| 162 | |
---|
| 163 | // DIRECTX/HLSL Indirect texture default |
---|
| 164 | // This technique render the billboard cloud using the indirect texturing |
---|
| 165 | // approach leading to high resolution leaves |
---|
| 166 | technique indirectTexturingLightingFiltering_HLSL |
---|
| 167 | { |
---|
| 168 | lod_index 0 |
---|
| 169 | pass |
---|
| 170 | { |
---|
| 171 | alpha_rejection greater_equal 110 |
---|
| 172 | cull_hardware none |
---|
| 173 | cull_software none |
---|
| 174 | lighting off |
---|
| 175 | |
---|
| 176 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
| 177 | { |
---|
| 178 | param_named_auto worldviewproj worldviewproj_matrix |
---|
| 179 | param_named_auto lightPosition light_position_object_space 0 |
---|
| 180 | param_named_auto eyePosition camera_position_object_space |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
| 184 | { |
---|
| 185 | param_named sourceTextureSize float 16.0 |
---|
| 186 | param_named sqrtNumSamples float 4.0 |
---|
| 187 | param_named_auto ambientColor ambient_light_colour |
---|
| 188 | param_named ambient float 0.3 |
---|
| 189 | } |
---|
| 190 | |
---|
| 191 | texture_unit |
---|
| 192 | { |
---|
| 193 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
| 194 | filtering none |
---|
| 195 | } |
---|
| 196 | |
---|
| 197 | texture_unit |
---|
| 198 | { |
---|
| 199 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 200 | //filtering none |
---|
| 201 | } |
---|
| 202 | } |
---|
| 203 | } |
---|
| 204 | |
---|
| 205 | // DIRECTX/HLSL Indirect texture default |
---|
| 206 | // This technique render the billboard cloud using the indirect texturing |
---|
| 207 | // approach leading to high resolution leaves |
---|
| 208 | technique indirectTexturingLightingNoFiltering_HLSL |
---|
| 209 | { |
---|
| 210 | lod_index 1 |
---|
| 211 | pass |
---|
| 212 | { |
---|
| 213 | alpha_rejection greater_equal 110 |
---|
| 214 | cull_hardware none |
---|
| 215 | cull_software none |
---|
| 216 | lighting off |
---|
| 217 | |
---|
| 218 | vertex_program_ref indirectTexturingLighting_hlsl_VP20 |
---|
| 219 | { |
---|
| 220 | param_named_auto worldviewproj worldviewproj_matrix |
---|
| 221 | param_named_auto lightPosition light_position_object_space 0 |
---|
| 222 | param_named_auto eyePosition camera_position_object_space |
---|
| 223 | } |
---|
| 224 | |
---|
| 225 | fragment_program_ref indirectTexturingLighting_hlsl_FP20 |
---|
| 226 | { |
---|
| 227 | param_named sourceTextureSize float 16.0 |
---|
| 228 | param_named sqrtNumSamples float 4.0 |
---|
| 229 | param_named_auto ambientColor ambient_light_colour |
---|
| 230 | param_named ambient float 0.3 |
---|
| 231 | } |
---|
| 232 | |
---|
| 233 | texture_unit |
---|
| 234 | { |
---|
| 235 | texture chestnutIndirectBillboardGroupAtlas0.png |
---|
| 236 | filtering none |
---|
| 237 | } |
---|
| 238 | |
---|
| 239 | texture_unit |
---|
| 240 | { |
---|
| 241 | texture chestnutRotatedLeafAtlasDefault.png |
---|
| 242 | filtering none |
---|
| 243 | } |
---|
| 244 | } |
---|
| 245 | } |
---|
| 246 | } |
---|