Sign in to follow this  

Texture problems with pixel shaders!? HELP!

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

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