Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualMJP

Posted 24 January 2013 - 04:36 PM

When you use POSITIONT, it means that the vertex positions are pre-transformed and that the vertex shader isn't run. Therefore the contents of your vertex buffer get passed directly to the pixel shader. In your vertex decaration TEXCOORD0 is a float2, but your pixel shader expects a float4. Either change your vertex buffer and declaration so that it has a float4, or change your pixel shader to take a float2.


#1MJP

Posted 24 January 2013 - 04:17 PM

When you use POSITIONT, it means that the vertex positions are pre-transformed and that the vertex shader isn't run. Therefore the contents of your vertex buffer get passes directly to the pixel shader. In your vertex decaration TEXCOORD0 is a float2, but your pixel shader expects a float4. Either change your vertex buffer and declaration so that it has a float4, or change your pixel shader to take a float2.


PARTNERS