Ignore:
Timestamp:
01/11/07 21:40:49 (17 years ago)
Author:
mattausch
Message:

global lines nearly useable!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg

    r1964 r1969  
    22float3 main(in float4 col : COL0, 
    33            in float3 pos : WPOS, 
    4             uniform float texWidth, 
     4            uniform float invTexWidth, 
    55            uniform float stepSize, 
    66            uniform sampler2D depthTex) : COLOR 
    77{ 
    8    float zold = tex2D(depthTex, pos.xy / texWidth); 
     8   float zold = tex2D(depthTex, pos.xy * invTexWidth); 
    99 
    1010   if(pos.z < (zold + stepSize)) 
Note: See TracChangeset for help on using the changeset viewer.