Jump to content
  • Advertisement
Sign in to follow this  
smartus

Shadow Mapping in shaders

This topic is 4727 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, I am trying to learn how to work with those vertex and pixel shaders. I am using RenderMonkey 1.6, cause it seems so easy. Because my primary field of interest is in 2D graphics, I found some things quite dificult... Now I am trying to write something like a shadow mapping completely in shaders using RenderMonkey IDE. I understand the idea of rendering first the scene from the light's point of view to some texture and then rendering the scene again from my view. But I can't get it to work... Can anybody point me to some shader tutorial with such example? I spent a day messing with it and it's driving me mad. I will post my code here when I get to my computer at school.

Share this post


Link to post
Share on other sites
Advertisement
My code, written in RenderMonkey 1.6 and exported to .fx file:

http://urtax.ms.mff.cuni.cz/~martin/shaders/shadows.fx

Original RenderMonkey project with model included:

http://urtax.ms.mff.cuni.cz/~martin/shaders/shadows.zip

As I said, can't figure out, what am I doing wrong (cause I am 3D n00b :))

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!