Jump to content
  • Advertisement
Sign in to follow this  
keym

Problem with cgSetPassState()

This topic is 2169 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,
I'm having a headache with cgSetPassState(pass) function. Basically, when I call it, all geometry disappears. I've already spent several days trying to figure out what's wrong, but no luck. When I comment the line with it, it's all right, but I want to setup some samplers and I have to use cgSetPassState() . Cg doesn't output any errors which makes things even worse. unsure.png To be more specific, I'm not changing any states in my shaders and I'm using CgFX files, so each shader is in separate pass. According to this http://www.pouet.net....php?which=7391 I have to use cgSetPassState, but for some reason it messes up my rendering and I'm stuck.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!