stanlylee
10-10-2006, 08:09 AM
I find a very interesting thing about nvidia's glsl implemention.
VS: file name (Simple1.vs)
content: (copyed from RenderMonkey)
varying vec2 Texcoord;
void main( void )
{
gl_Position = ftransform();
gl_FrontColor = gl_Color;
Texcoord = gl_MultiTexCoord0.xy;
}
---------------------------------
PS: file name (wavespread.ps)
Content: (write myself to calculate the water wave.
uniform sampler2D Texture0;
uniform vec4 pixel_dim;
uniform float fFrameTime;
varying vec2 texCoord;
void main(void)
{
......
}
-----------------------------
obviously . if you link these two shaders . driver should throw a error.
but in fact ,NVidia's driver dose not .
In my notebook . GPU is NV7400Go . Driver is 84.26, those two shader worked very well.
In my PC , GPU is NV6600 , Driver is 84.xx, those two shader worked well too .. :(
upgrade driver to 91.47. just not work . but nothing can got by glGetProgramiv(,GL_INFO_LOG_LENGTH) ;
Anyone known why?
VS: file name (Simple1.vs)
content: (copyed from RenderMonkey)
varying vec2 Texcoord;
void main( void )
{
gl_Position = ftransform();
gl_FrontColor = gl_Color;
Texcoord = gl_MultiTexCoord0.xy;
}
---------------------------------
PS: file name (wavespread.ps)
Content: (write myself to calculate the water wave.
uniform sampler2D Texture0;
uniform vec4 pixel_dim;
uniform float fFrameTime;
varying vec2 texCoord;
void main(void)
{
......
}
-----------------------------
obviously . if you link these two shaders . driver should throw a error.
but in fact ,NVidia's driver dose not .
In my notebook . GPU is NV7400Go . Driver is 84.26, those two shader worked very well.
In my PC , GPU is NV6600 , Driver is 84.xx, those two shader worked well too .. :(
upgrade driver to 91.47. just not work . but nothing can got by glGetProgramiv(,GL_INFO_LOG_LENGTH) ;
Anyone known why?