Skip to content

Commit

Permalink
Fixed shader
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 29, 2008
1 parent 24f66b6 commit 9c59091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shaders/volume_tf.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
uniform sampler3D baseTexture;
uniform sampler1D tfTexture;
uniform float sampleDensity;
uniform float transparency;
uniform float alphaCutOff;
Expand Down Expand Up @@ -72,7 +73,7 @@ void main(void)
vec4 fragColor = vec4(0.0, 0.0, 0.0, 0.0);
while(num_iterations>0.0)
{
v = texture3D( baseTexture, texcoord).a;
float v = texture3D( baseTexture, texcoord).a;
vec4 color = texture1D( tfTexture, v);

float r = color[3]*transparency;
Expand Down

0 comments on commit 9c59091

Please sign in to comment.