- Timestamp:
- Nov 11, 2018, 5:37:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/Shader_HS18/materials/Cube_Lava_Normal.material
r12092 r12096 7 7 pass ambient 8 8 { 9 // base colours, not needed for rendering, but as information 10 // to lighting pass categorisation routine 11 diffuse 0 0 0 9 // base colours, not needed for rendering, but as information 10 // to lighting pass categorisation routine 11 ambient 1 1 1 12 diffuse 0 0 0 13 specular 0 0 0 0 14 // Really basic vertex program 15 // NB we don't use fixed function here because GL does not like 16 // mixing fixed function and vertex programs, depth fighting can 17 // be an issue 18 vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTextureUnified 19 { 20 param_named_auto ambient ambient_light_colour 21 } 22 fragment_program_ref Ogre/BasicFragmentPrograms/PassthroughFP 23 { 24 } 25 12 26 } 13 27 // Now do the lighting pass … … 15 29 pass perlight 16 30 { 31 17 32 // do this for each light 18 33 iteration once_per_light … … 33 48 fragment_program_ref Examples/BumpMapFP 34 49 { 35 param_named_auto lightDiffuse light_diffuse_colour 0 50 param_named_auto lightDiffuse light_diffuse_colour 0 36 51 } 37 52 … … 47 62 shadow_receiver_fragment_program_ref Examples/BumpMapFPShadowRcv 48 63 { 49 param_named_auto lightDiffuse light_diffuse_colour 0 64 param_named_auto lightDiffuse light_diffuse_colour 0 50 65 } 51 66 52 67 // Base bump map 53 68 texture_unit normalmap … … 57 72 } 58 73 } 59 74 60 75 // Decal pass 61 76 pass decal 62 77 { 63 // hint to pass categorisation routine, that this is decal only 78 // base colours, not needed for rendering, but as information 79 // to lighting pass categorisation routine 64 80 lighting off 81 // Really basic vertex program 82 // NB we don't use fixed function here because GL does not like 83 // mixing fixed function and vertex programs, depth fighting can 84 // be an issue 85 65 86 scene_blend dest_colour zero 66 87 texture_unit decalmap 67 88 { 68 texture Cube_Lava_COLOR.jpg 89 texture Cube_Lava_COLOR.jpg 69 90 } 70 91 }
Note: See TracChangeset
for help on using the changeset viewer.