glstate

Can someone direct me to a discussion on what the valid members/properties are of ‘glstate’? For example, I’ve used this:

glstate.matrix.mvp

Which I presume is OpenGl’s view projection matrix. But I’ve also seen glstate.matrix.texture[0] and glstate.matrix.model[0]. What does the index refer to… and is there a specific mapping between these and the redbook (or the glspec2.0 document)?

Cheers,
Paul Mikulecky
Lost Pencil Animation Studios Inc.
http://www.lostpencil.com

All of these are defined by Nvidia’s Cg. You want to read the Cg User’s Manual:

Lots of examples there. You need to wrap them into some shaderlab stuff, but it’s a great way to get started.

Wonderful, thanks Nicholas! That’s what it’s from… Cg… that helps! I’m currently going through the Cg Tutorial book as well.

Cheers,
Paul Mikulecky
Lost Pencil Animation Studios Inc.
http://www.lostpencil.com