CGparameter problem

Started by
-1 comments, last by JorenJoestar 15 years, 5 months ago
Hi guys, recently I've changed my renderer to support both CgFx and HLSL but I have a problem using Cg... As test purpose, I'm using a really simple CgFx program that applies a texture to an object, without any kind of illumination. I have two parameters: the worldviewprojection matrix and the texture, nothing more and nothing less. Now comes the problem: I have two objects using this CgEffect, and I take the CGparameter using cgGetNamedEffectParameter, and this handle is used for both the meshes. The problem is that the last value set is the one used across the meshes, so for example the texture is the second for both...what am I doing wrong? thanks!
---------------------------------------http://badfoolprototype.blogspot.com/

This topic is closed to new replies.

Advertisement