This topic is now archived and is closed to further replies.

Sameer Dhavale

triangle_fan with CG shaders

Recommended Posts

Hi, I m trying to use Cg with OpenGL API. But even the simplest Vertex shader which does nothing void VertexProgram( in float4 position : POSITION, in float4 color : COLOR0, in float2 texCoord0 : TEXCOORD0, out float4 positionO : POSITION, out float4 colorO : COLOR0, out float2 texCoordO0 : TEXCOORD0, const uniform float4x4 ModelViewMatrix ) { positionO = mul(position, ModelViewMatrix); texCoordO0 = texCoord0; colorO = color; } isn''t working. is it because we are using GL_TRIANGLE_FAN? we r referring NEHE lesson47. the screen just shows black color. please help. Keep Smiling!

Share this post

Link to post
Share on other sites