Changeset 1085


Ignore:
Timestamp:
07/06/06 10:03:46 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_Caustic.hlsl

    r807 r1085  
    3030                                uniform samplerCUBE CubeMap : register(s0), 
    3131                                uniform samplerCUBE distanceCube : register(s1), 
    32                                 uniform float3 cubeMapCameraPosition):COLOR 
     32                                uniform float3 cubeMapCameraPosition, 
     33                                uniform float attenuation):COLOR 
    3334{ 
    3435        float4 Color = float4(1,1,1,1);  
     
    3940        float dist = readDistanceCubeMap(distanceCube, dir); 
    4041         
    41         float EPSILON = 20.0; 
     42        float EPSILON = 0.1; 
    4243 
    43         if(mydist > dist + EPSILON) caustic = 0; 
    44                          
     44        //if(mydist > dist + EPSILON) caustic = 0; 
     45         caustic *= max(attenuation - mydist, 0) / attenuation; 
     46                 
    4547        Color = caustic; 
    4648                 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/hangar.material

    r1081 r1085  
    55                pass 
    66                { 
     7                        IllumTechniques 
     8                        {                                
     9                                RenderTechnique DepthShadowReciever 
     10                                { 
     11                                         
     12                                } 
     13                        } 
     14 
    715                        ambient 0.5 0.5 0.5 1 
    816                        diffuse 0.5 0.5 0.5 1 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/kupola.material

    r1081 r1085  
    2020                        } 
    2121                } 
     22                 
     23                scene_blend none 
     24                scene_blend_op add 
     25                scene_blend_op_alpha add 
     26                scene_blend_alpha none 
    2227                  
    2328                lighting off             
     
    6974                        } 
    7075                         
     76                        scene_blend none 
     77                        scene_blend_op add 
     78                        scene_blend_op_alpha add 
     79                        scene_blend_alpha none 
    7180                         
    7281                        lighting off             
Note: See TracChangeset for help on using the changeset viewer.