Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9427 for data


Ignore:
Timestamp:
Nov 4, 2012, 2:02:47 PM (12 years ago)
Author:
davidsa
Message:

FIX: changed nested comments into single line comments, as it turns out Ogre material scripts don't like nested comments so my material script was broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/materials/glow.material

    r9425 r9427  
    2323                        depth_func less_equal
    2424                        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
    2628                       
    2729                        vertex_program_ref glow_vs
    2830                        {
    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
    3033                                param_named_auto iViewMatrix inverse_view_matrix
    3134                                param_named_auto worldMatrix   world_matrix
    3235                                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
    3439                        }
    3540                       
    3641                        fragment_program_ref glow_ps
    3742                        {
    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
    4357                        }
    4458                }
Note: See TracChangeset for help on using the changeset viewer.