View Single Post
Old 07-17-10, 11:12 PM   #1
Funto
Registered User
 
Join Date: Jan 2010
Posts: 11
Default Wrong interpolation between 2 vertices

Hi all,

I am using the experimental drivers 195.36.07.04 (I want modern OpenGL support).

I am drawing a line, from P0 to P1.
I have a varying variable declared like this in my vertex shader:

noperspective out vec3 var_debug_color;

In my vertex shader, I assign to var_debug_color the value vec3(0.0, 0.5, 0.0) for P0 and vec3(0.5, 0.0, 0.0) for P1.
P0 is visible, P1 is not inside the view frustum (behind the camera).

In my fragment shader, I just output vec4(var_debug_color, 0.0).

Problem: the values which appear on screen are above 127 for the green component!
Example RGB output I get:
0, 127, 0
0, 129, 0
0, 131, 0
0, 135, 0
...etc

I suppose this is a bug in the driver. I think I could provide a test case, if someone is willing to investigate this bug.

Thank you.
Funto is offline   Reply With Quote