Sign in to follow this  
jschaedler

hlsl assistance

Recommended Posts

jschaedler    128
I am writing a shader with FX composer that uses multiple passes. If i keep my technique 1 pass the shader compiles fine, but if I add a second pass in the shader i get a compiler error saying that "Input semantic POSITION is invalid". It makes absolutely no sense to me. I am simply using the same vertex shader both passes and applying a 2nd pixel shader on the 2nd pass. Can anyone possibly tell me why this error might be occurring? any ideas/advice would be appreciated!

Share this post


Link to post
Share on other sites
jschaedler    128
Nevermind, i had no idea that you had to pass position in as a texcoord to use it in the pixel shader and was trying to access the position that was passed out of the vertex shader directly :P

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