Changeset 9427 for data/trunk/materials/glow.material
- Timestamp:
- Nov 4, 2012, 2:02:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/materials/glow.material
r9425 r9427 23 23 depth_func less_equal 24 24 lighting off 25 emissive 0.5 0.9 1.0 0.0 //what color should the glow be, emissive light can be changed through ogre as well 25 26 //what color should the glow be, emissive light can be changed through ogre as well 27 emissive 0.5 0.9 1.0 0.0 26 28 27 29 vertex_program_ref glow_vs 28 30 { 29 param_named_auto iWorldTMatrix inverse_transpose_world_matrix //don't worry about auto parameters here, they are given 31 //don't worry about auto parameters here, they are given 32 param_named_auto iWorldTMatrix inverse_transpose_world_matrix 30 33 param_named_auto iViewMatrix inverse_view_matrix 31 34 param_named_auto worldMatrix world_matrix 32 35 param_named_auto viewProjMatrix viewproj_matrix 33 param_named inflate float 0.05 //how much should the glow expand from the model, usually a small value 36 37 //how much should the glow expand from the model, usually a small value 38 param_named inflate float 0.05 34 39 } 35 40 36 41 fragment_program_ref glow_ps 37 42 { 38 param_named alphaValue float 0.5 //base alpha value of glow 39 param_named cutoffAngle float 70.0 //from which view to surface normal angle on should the intensity of the glow decrease 40 param_named exponent float 2.5 //by which exponent should the intensity decrease 41 param_named_auto time time_0_x 50 //how fast should the light pulsate 42 param_named_auto color surface_emissive_colour //don't worry about this one, it makes sure we use the emissive color value 43 //base alpha value of glow 44 param_named alphaValue float 0.5 45 46 //from which view to surface normal angle on should the intensity of the glow decrease 47 param_named cutoffAngle float 70.0 48 49 //by which exponent should the intensity decrease 50 param_named exponent float 2.5 51 52 //how fast should the light pulsate 53 param_named_auto time time_0_x 50 54 55 //don't worry about this one, it makes sure we use the emissive color value 56 param_named_auto color surface_emissive_colour 43 57 } 44 58 }
Note: See TracChangeset
for help on using the changeset viewer.