Sign in to follow this  

Multiple techniques in single fx file

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

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