Ignore:
Timestamp:
07/05/07 16:18:22 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/Station
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/StationBase.hlsl

    r2507 r2527  
    250250        { 
    251251                //Color *= 0.00000000001; 
    252                 Color += diffuseColor * Caustics(CausticCubeMap, CausticCasterDepthMap, IN.wPos - causticCasterCenter1, causticAttenuationRange1); 
     252                Color.rgb += diffuseColor.rgb * Caustics(CausticCubeMap, CausticCasterDepthMap, IN.wPos - causticCasterCenter1, causticAttenuationRange1); 
    253253        } 
    254254        //Color.a = dist; 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/station.material

    r2489 r2527  
    263263} 
    264264 
     265material GTP/Station/CauCube_Point 
     266{ 
     267 technique 
     268 { 
     269  pass 
     270  {  
     271   cull_hardware none 
     272   scene_blend src_alpha one 
     273   depth_check off 
     274   vertex_program_ref GTP/Caustic/CauCube_PointSprite_VS 
     275   { 
     276     param_named_auto WorldView     worldview_matrix 
     277     param_named_auto Proj          projection_matrix 
     278     param_named CauSpriteSize      float 20 
     279   }  
     280   fragment_program_ref GTP/Caustic/CauCube_Point_PS 
     281   { 
     282     param_named CausticColor float4          1 1 1 0.09 
     283     param_named_auto targetResolution viewport_width 
     284   } 
     285   texture_unit 
     286   { 
     287     vertex_texture true          
     288   } 
     289   texture_unit 
     290   { 
     291     texture PowerOfPhotonHitTexel.dds 
     292   } 
     293  } 
     294 } 
     295} 
     296 
    265297material GTP/Station/CauCube_Triangles 
    266298{ 
     
    278310     param_named_auto Proj           projection_matrix 
    279311     param_named PhotonMapResolution float 64 
    280      param_named WorldSize float 0.01 
     312     param_named WorldSize float 0.1 
    281313   }  
    282314   fragment_program_ref GTP/Caustic/CauCube_Triangles_PS 
     
    385417                                update_interval 1 
    386418                                update_all_face true 
    387                                 photonmap_resolution 128 
     419                                photonmap_resolution 64 
    388420                                caustic_cubemap_resolution 256 
    389421                                photon_map_material     GTP/Station/PhotonMap_HitEnv 
    390                                 caustic_map_material    GTP/Station/CauCube_PointSprite 
     422                                caustic_map_material    GTP/Station/CauCube_Point 
    391423                                //caustic_map_material  GTP/Station/CauCube_Triangles 
    392424                                //use_triangles true 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/stationIllum.hlsl

    r2507 r2527  
    156156} 
    157157 
    158 float Caustics(samplerCUBE cauMap, samplerCUBE distMap, float3 dir, float attenuation) 
     158float3 Caustics(samplerCUBE cauMap, samplerCUBE distMap, float3 dir, float attenuation) 
    159159{ 
    160160        float d = length(dir); 
     
    163163        caustics *= 1.0 - saturate(d / attenuation); 
    164164         
    165         return caustics.r; 
     165        return caustics.rgb; 
    166166} 
Note: See TracChangeset for help on using the changeset viewer.