Writing a Custom BasicEffect

Tutorial 7

5 Responses to “Writing a Custom BasicEffect”

  1. crazyhor77 Says:

    Hi Shawn, good to see you have your blog up and running again. I have worked my way through most of your tutorials in the past and recently needed to implement my own shader, so I followed your BasicEffect tutorial, which explains things very well.

    I have however tried to implement my own shader based upon the BasicEffect shader which includes texture information from my model. Although it works, the textures seem to get washed out from all the lighting colors.

    I am going for a very white, light shader effect, so of cours everything appears white. How can I combine my textures and lighting so the textures are very clear but well lit?

    P.S Sorry about the novel length post.

  2. mikeschuld Says:

    Shawn? who’s that? My name’s Mike ;)

    There is a post in the forums about adding textures to the BasicShader. Check it out here:

    http://www.thehazymind.com/smf/index.php?topic=271.0

  3. crazyhor77 Says:

    haha, i wrote without even thinking, i must have had shawn hargreaves in my mind for some reason.

    yeah, i found the info in the forums afterwards, the way i was adding the texture color to the lighting was all wrong, ill be sure to ask questions in the forums from now on :)

    btw, is there a link to the forums from your blog?

  4. mikeschuld Says:

    There will be now ;)

  5. crazyhor77 Says:

    haha, gw :)

Leave a Reply

You must be logged in to post a comment.