Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2011, 5:41:04 PM (14 years ago)
Author:
marwegma
Message:

Godrays.compositor added, extended Godrays.material, unified the Godrays code a bit.

Location:
data/branches/environment/materials
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/environment/materials/Godrays.material

    r8346 r8357  
    11/**
    2 *
     2* 
    33* \author Markus Wegmann
    44*
     
    3131
    3232
    33 fragment_program GodrayBlurFragmentProgram cg
     33fragment_program GodraysBlurFragmentProgram cg
    3434{
    3535    source Godrays_blur.cg
    36     entry_point godray_blur
    37     profiles ps_3_0 fp40
     36    entry_point godrays_blur
     37    profiles fp40 ps_3_0
    3838}
    3939
    4040
    41 material Godrays/Blur/RadialBlur
     41
     42material Godrays/Blur
    4243{
    4344    technique
     
    4647        pass
    4748        {
    48             fragment_program_ref GodrayBlurFragmentProgram
     49            fragment_program_ref GodraysBlurFragmentProgram
    4950            {
    5051                param_indexed 0 float2 0.0 0.0
     
    5253                param_indexed 2 float 0.1
    5354                param_indexed 3 float 0.7
    54                 // The raw decal has to be loaded manually by api.
    5555            }
    5656        }
    5757    }
    5858}
     59
     60fragment_program GodraysCombineFragmentProgram cg
     61{
     62    source Godrays_blur.cg
     63    entry_point godrays_combine
     64    profiles fp40 ps_3_0
     65}
     66
     67material Godrays/Combine
     68{
     69    technique
     70    {
     71        pass
     72        { 
     73            fragment_program_ref GodraysCombineFragmentProgram { }
     74        }
     75    }
     76}
Note: See TracChangeset for help on using the changeset viewer.