hlsl assistance

Started by
0 comments, last by jschaedler 17 years, 1 month ago
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!
Advertisement
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

This topic is closed to new replies.

Advertisement