PDA

View Full Version : CG instead of register combiners + texture shaders



Ninja
07-12-2002, 05:55 AM
I know it is possible to do per-pixel
bump-mapping with register combiners and texture shaders in opengl.
Since pixel shaders in cg compiles to rc and ts is it then possible to do this bumpmapping with CG in just 1 pass (on gf3)?
Or was the pixelshading in cg not ready yet?

-Ninja

jra101
07-12-2002, 07:27 AM
The current release of the Cg compiler doesn't support OpenGL pixel programs yet but the final release will have support for this.

For now you can continue to use texture shaders+register combiners or you can try writing a DirectX Pixel Shader program in Cg, then use nvparse to convert it to equivalent texture shader+rc settings.