Sign in to follow this  

Multiple techniques in single fx file

This topic is 3199 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

I have one vertex shader and a bunch of different pixelshaders and techniques all stored in a single fx file. This fx file is used for terrain rendering. At run-time terrain nodes know which technique to use for rendering. All techniques are using the same vertexshader but different pixelshaders. In rendering loop, the first selected technique works but after the first SetTechnique() call it doesn't work anymore, ValidateTechnique() doesn't return D3D_OK only the first call returns D3D_OK. Why is this? My problem is similar to this Click

Share this post


Link to post
Share on other sites

This topic is 3199 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this