Changeset 2246


Ignore:
Timestamp:
03/13/07 16:41:52 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material

    r2217 r2246  
    2222        IllumTechniques 
    2323        { 
    24                 RenderTechnique DepthShadowReciever 
    25                 { 
    26                 max_light_count 2 
    27                         vertex_program_name GTP/Basic/LightCPos_VS 
    28                         fragment_program_name GTP/Basic/SM/Dist_VSM_PS 
    29                         set_light_view true 
    30                         set_light_farplane true 
    31                         light_viewproj_param_name LightViewProj 
    32                         light_view_param_name LightView 
    33                         light_farplane_param_name lightFarPlane 
    34                         world_view_proj_param_name WorldViewProj 
    35                         world_param_name World 
    36                 } 
    37                 RenderTechnique PathMap 
    38                 { 
     24         //     RenderTechnique PathMap 
     25         //     { 
    3926             
    40                 } 
     27          //    } 
     28        //      RenderTechnique DepthShadowReciever 
     29        //      { 
     30        //      max_light_count 2 
     31        //              vertex_program_name GTP/Basic/LightCPos_VS 
     32        //              fragment_program_name GTP/Basic/SM/Dist_VSM_PS 
     33        //              set_light_view true 
     34        //              set_light_farplane true 
     35        //              light_viewproj_param_name LightViewProj 
     36        //              light_view_param_name LightView 
     37        //              light_farplane_param_name lightFarPlane 
     38        //              world_view_proj_param_name WorldViewProj 
     39        //              world_param_name World 
     40         //     } 
     41        } 
     42        vertex_program_ref GTP/Basic/ShadedTex_VS 
     43        { 
     44                param_named_auto WorldViewProj worldviewproj_matrix 
     45                param_named_auto World world_matrix 
     46                param_named_auto WorldInv inverse_world_matrix 
     47        } 
     48        fragment_program_ref GTP/Basic/Shaded/TexturedOneLight_PS 
     49        { 
     50                param_named_auto lightPos light_position 0 
     51                param_named_auto lightDir light_direction 0 
     52                param_named_auto lightColor light_diffuse_colour 0 
     53                param_named_auto lightPower light_power 0 
    4154        } 
    4255        texture_unit color 
    4356        { 
    44      colour_op replace 
     57        colour_op replace 
    4558    }     
    4659   }    
  • GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl

    r2217 r2246  
    44uniform sampler2D clusterWeightIndexSampler : register(s1); 
    55uniform sampler2D clusterWeightSampler : register(s2); 
     6uniform sampler2D colorSampler : register(s3); 
    67uniform float allClusterCount;  
    78uniform float clusterCount; 
     
    5051        } 
    5152         
    52         return float4(col * 300, 1); 
     53        float3 color = tex2D(colorSampler, input.tex).rgb; 
     54        return float4(col * color, 1); 
    5355} 
    5456 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMapWeightCompute.hlsl

    r2217 r2246  
    66uniform float3 lightPos; 
    77uniform float3 lightDir; 
     8uniform float lightPower; 
    89uniform float clusterCount; 
    910uniform float4x4 lightViewProj; 
     
    4445        float3 pos = tex2D(radionSampler, float2((werx + 0.25) * dataColumnWidth, (wery  + 0.5) / 4096.0) ).xyz; 
    4546        float3 dir = tex2D(radionSampler, float2((werx + 0.75) * dataColumnWidth, (wery  + 0.5) / 4096.0) ).xyz; 
     47        dir = normalize(dir); 
    4648         
    4749        float3 diff = lightPos - pos; 
     
    6668        //visibility = visibility * 0.00001 + 1.0; 
    6769         
    68         float4 ret = visibility * pow(cosa, 9) * cosb / dist2; 
     70        float4 ret = visibility * pow(cosa, 9) * cosb / dist2 * lightPower; 
    6971        return ret; 
    7072} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.program

    r2188 r2246  
    188188   target ps_3_0 
    189189} 
     190 
     191fragment_program GTP/Basic/Shaded/TexturedOneLight_PS hlsl 
     192{ 
     193   source GTPBasicShading.hlsl 
     194   entry_point TexturedShadedOneLight_PS 
     195   target ps_2_0 
     196} 
    190197    
Note: See TracChangeset for help on using the changeset viewer.