Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


directional shadow in reflection map


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 grunt123   Members   -  Reputation: 177

Like
0Likes
Like

Posted 06 January 2014 - 05:02 PM

Hi, 

 

i'm trying to implement directional shadow in cube reflection map.  I'm trying to avoid the case where i have to re-render reflected objects into separate shadow map.  Here is what i'm thinking ...

 

- render cube reflectionmap along with cube depth map

- for each pixel in reflectionmap, (all cube texture) cast a ray to the sun, and use cube depth map to check if ray is obstructed by object

- if it's obstructed, then shade a pixel.

 

i'm not quite sure about step 2, is it possible to use the ray vector as reflection vector into cubemap ref. texture? 


Edited by grunt123, 06 January 2014 - 05:03 PM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS