/** * * \author Markus Wegmann * **/ material Godrays/Raw/Sun // Renders the sun as a single colored sphere. Z-buffering is enabled. { technique { pass { ambient 1.0 1.0 1.0 1.0 lightning off } } } material Godrays/Raw/Obstacle // Renders the sun as a single colored sphere. Z-buffering is enabled. { technique { pass { ambient 0.0 0.0 0.0 1.0 lightning off } } } fragment_program GodraysBlurFragmentProgram cg { source Godrays_blur.cg entry_point godrays_blur profiles fp30 ps_3_0 } material Godrays/Blur { technique { texture_unit raw_decal { tex_address_mode border tex_border_colour 0.0 0.0 0.0 1.0 // Set manually to sky color by api. content_type compositor Godrays rt_raw } pass { fragment_program_ref GodraysBlurFragmentProgram { param_indexed 0 float2 0.0 0.0 param_indexed 1 float 1.0 param_indexed 2 float 0.1 param_indexed 3 float 0.7 } } } } fragment_program GodraysCombineFragmentProgram cg { source Godrays_blur.cg entry_point godrays_combine profiles fp30 ps_3_0 } material Godrays/Combine { technique { texture_unit scene_decal { content_type compositor Godrays rt_scene } texture_unit blur_decal { content_type compositor Godrays rt_blur } pass { fragment_program_ref GodraysCombineFragmentProgram { } } } }