Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8387


Ignore:
Timestamp:
May 2, 2011, 7:58:56 PM (13 years ago)
Author:
marwegma
Message:

Godrays: Fixed some parsing errors in the material and compositor scripts.

Location:
data/branches/environment/materials
Files:
2 edited

Legend:

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

    r8357 r8387  
    1414        target rt_raw
    1515        {
    16             clear
     16            pass clear
    1717            {
    18                 buffers colour
    19                 colour_value 0.0 0.0 0.0 1.0 // Clear by sky colour. Default is black.
     18                clear
     19                {
     20                    buffers colour depth stencil
     21                    colour_value 0.0 0.0 0.0 1.0 // Clear by sky colour. Default is black
     22                }
    2023            }
    2124
    22             render_scene // render_custom?
     25            pass render_scene // render_custom?
    2326            {
    2427                first_render_queue 40
     
    2831            }
    2932
    30             render_scene
     33            pass render_scene
    3134            {
    3235                first_render_queue 60
     
    4144        target rt_blur
    4245        {
    43             render_quad
     46            pass render_quad
    4447            {
    4548                material Godrays/Blur
     
    5255        target_output
    5356        {
    54             render_quad
     57            pass render_quad
    5558            {
    5659                material Godrays/Combine
  • data/branches/environment/materials/Godrays.material

    r8359 r8387  
    1313        {
    1414            ambient 1.0 1.0 1.0 1.0
    15             lightning off
     15            lighting off
    1616        }
    1717    }
     
    2525        {
    2626            ambient 0.0 0.0 0.0 1.0
    27             lightning off
     27            lighting off
    2828        }
    2929    }
     
    4444    technique
    4545    {
    46         texture_unit raw_decal
    47         {
    48             tex_address_mode border
    49             tex_border_colour 0.0 0.0 0.0 1.0 // Set manually to sky color by api.
    50 
    51             content_type compositor Godrays rt_raw
    52         }
    5346
    5447        pass
    5548        {
     49            texture_unit //raw_decal
     50            {
     51                tex_address_mode border
     52                tex_border_colour 0.0 0.0 0.0 1.0 // Set manually to sky color by api.
     53
     54                content_type compositor Godrays rt_raw
     55            }
     56
    5657            fragment_program_ref GodraysBlurFragmentProgram
    57             { 
     58            {
    5859                param_indexed 0 float2 0.0 0.0
    5960                param_indexed 1 float 1.0
     
    7677    technique
    7778    {
    78         texture_unit scene_decal
     79        pass
    7980        {
    80             content_type compositor Godrays rt_scene
    81         }
    82         texture_unit blur_decal
    83         {
    84             content_type compositor Godrays rt_blur
    85         }
     81            texture_unit //scene_decal
     82            {
     83                content_type compositor Godrays rt_scene
     84            }
     85            texture_unit //blur_decal
     86            {
     87                content_type compositor Godrays rt_blur
     88            }
    8689
    87         pass
    88         { 
    8990            fragment_program_ref GodraysCombineFragmentProgram { }
    9091        }
Note: See TracChangeset for help on using the changeset viewer.