Changeset 5133 for data/Media/materials/scripts/asteroids.material
- Timestamp:
- May 29, 2008, 11:09:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/Media/materials/scripts/asteroids.material
r5132 r5133 170 170 } 171 171 172 // This is the fallback which cards which don't have fragment program173 // support will use, NB does not support specular colour174 // Note that it still requires vertex program support175 technique176 {177 // Base ambient pass178 pass179 {180 // base colours, not needed for rendering, but as information181 // to lighting pass categorisation routine182 ambient 1 1 1183 diffuse 0 0 0184 specular 0 0 0 0185 // Really basic vertex program186 // NB we don't use fixed function here because GL does not like187 // mixing fixed function and vertex programs, depth fighting can188 // be an issue189 vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture190 {191 param_named_auto worldViewProj worldviewproj_matrix192 param_named_auto ambient ambient_light_colour193 }194 195 }196 // Now do the lighting pass197 // NB we don't do decal texture here because this is repeated per light198 pass199 {200 // base colours, not needed for rendering, but as information201 // to lighting pass categorisation routine202 ambient 0 0 0203 // do this for each light204 iteration once_per_light205 206 207 scene_blend add208 209 // Vertex program reference210 vertex_program_ref BumpMapVP211 {212 param_named_auto lightPosition light_position_object_space 0213 param_named_auto worldViewProj worldviewproj_matrix214 }215 216 // Base bump map217 texture_unit218 {219 texture nmrock.tga220 colour_op replace221 }222 // Normalisation cube map, with dot product on bump map223 texture_unit224 {225 cubic_texture nm.tga combinedUVW226 tex_coord_set 1227 tex_address_mode clamp228 colour_op_ex dotproduct src_texture src_current229 colour_op_multipass_fallback dest_colour zero230 }231 }232 233 // Decal pass234 pass235 {236 lighting off237 // Really basic vertex program238 // NB we don't use fixed function here because GL does not like239 // mixing fixed function and vertex programs, depth fighting can240 // be an issue241 vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture242 {243 param_named_auto worldViewProj worldviewproj_matrix244 param_named ambient float4 1 1 1 1245 }246 scene_blend dest_colour zero247 texture_unit248 {249 texture rock.tga250 }251 252 }253 254 }255 172 } 256 173
Note: See TracChangeset
for help on using the changeset viewer.