Shader problem/ Need new shader?

Posted By: Towelie

Shader problem/ Need new shader? - 05/26/09 21:19

Im tyring to place a shader on some blocks. So, I do as the manual tells me, and am using the material collection that came with a7. However, it gives me this:


The shadows are all sorts of messed up. Also, the shaders make me unable to crate shadows, even these are level blocks. I searched the forums for new shaders but couldnt find anything- any direction would be appreciated. Would I need to pay someone to write a new bump map shader for me?
Posted By: xXxGuitar511

Re: Shader problem/ Need new shader? - 05/26/09 22:25

It's using the wrong texture coordinates (TEXCOORDn). Level geometry uses different texcoord registers than models do (look in the manual)...
Posted By: Towelie

Re: Shader problem/ Need new shader? - 05/26/09 23:54

So how would I fix this? I just looked in the manual and could only find the definition of texture coordinates.
Posted By: Foxfire

Re: Shader problem/ Need new shader? - 05/27/09 00:57

pass in the 2nd texture coordinates from the application to the vertex shader and then to the pixel shader.

create a new input semantic - in float2 [name] : TEXCOORD1;

this will give you the correct light map texture coordinates where as using the TEXCOORD0 (app to vertex) will give you the coordinates for entSkin1.

-Mike-
© 2024 lite-C Forums