Ignore:
Timestamp:
03/05/07 18:04:13 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl

    r2186 r2188  
    11uniform float4x4 WorldViewProj; 
    2 uniform float2 prmAtlasTiles; 
    3 uniform float2 atlasHalfPixel; 
     2uniform float4 prmAtlasTilesHalfPixel; 
    43uniform sampler2D filteredAtlasSampler : register(s0); 
     4uniform float weights[32]; 
    55 
    66struct vsInputWalk 
     
    3030float4  psWalk(vsOutputWalk input) : COLOR 
    3131{ 
    32 /*      float3 col = 0; 
     32        int2 prmAtlasTiles = prmAtlasTilesHalfPixel.xy; 
     33        float2 atlasHalfPixel = prmAtlasTilesHalfPixel.zw; 
     34         
     35        float3 col = 0; 
    3336        for(int iCluster=0; iCluster<16; iCluster++) 
    3437        { 
     
    5659                col += val.xyz * weight.w; 
    5760        } 
    58 */ 
    59         float ff = (float)prmAtlasTiles.x; 
    60         return float4( float3(ff,ff,ff) / 128.0/* + col*0.000000001*/, 1); 
     61         
     62        //return col.xxxx *0.00001 + tex2D(filteredAtlasSampler, float2(input.texAtlas.x /32.0f, 1.0 - input.texAtlas.y)); 
     63//return float4(1,0,0,1)+col.xxxx*0.0000000001; 
     64        return float4(col, 1); 
    6165} 
    6266 
Note: See TracChangeset for help on using the changeset viewer.