Jump to content
  • Advertisement
Sign in to follow this  
_damN_

Texture problems with pixel shaders!? HELP!

This topic is 3327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there... Im currently working on a 3D game engine based on the book "3D game engine programming". Im trying to use a pixel shader to do multitexturing. This is what the shader file looks like: ps.1.1 tex t0 tex t1 add r0, v0, v1 mul r0, r0, t0 add r1, v0, v1 mul r1, r1, t1 mul r0, r0, r1 The diffuse texture displays properly in the scene(A square room built from primitives), but as soon as i activate my pixel shader, The textures in the room go black! g_pDevice->CreatePShader("base.psh", 0, true, false, &g_Base[1]); Can anyone give me an idea about why this might be happening? Could it be the version of the DirectX SDK im using? I know my PC supports pixel shaders. Im fairly new to shaders so any advice would help!!! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!