Sign in to follow this  
elevator2

glVertexAttribArray how pass it to CG shader program ?

Recommended Posts

Hi all ! I'm trying to pass a vertex attributes array to a CG vertex program ! I've seen that in glsl this is obtained via glVertexAttribute to bind a generic array to a variable name in the shader ! But I haven't undoerstood how to do this in CG ! There isn't a binding function to bind the index of the array in CG so ... I'm confused. Tnx for any suggestion ! :D!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this