From: Meiner Einer (kahos++at++bikerider.com)
Date: 03/27/2003 06:20:56
hi again,
now I'm trying to use Cg with performer :-)
I get the shaders to work allright, but when using a textured model Performer keeps on overwriting the textures I initialized for the shader. the shader is working on several textures and all of them get overwritten by performer. I can set whatever I like as texture-parameters and work on any texture-unit, I only get the same texture in the end :-(
The shader-params are set as I can work on the textures when I use pfOverride(PFSTATE_TEXTURE, 1); in the PreDrawFunc.
any suggestion what I might be doing wrong? or what I can do to make it better?
what I would like to have is performer setting his textures only in one single texture-unit so the shader can use it but can still use his other textures which are explicitly set as parameters.
Or will I have to go for pfGeoSetCB and do my own drawing?
-- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup
This archive was generated by hypermail 2b29 : Thu Mar 27 2003 - 06:22:38 PST