• Advertisement
Sign in to follow this  

Alpha map in stencil shadow

This topic is 4504 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

Is a bealtifull day, you are walking in the parking, you look to a tree shadow and OH NO there is no leaf tex, just circles(my tree is made of spheres with leafs texture), i am a shading and c++ noob so how i can solve this problem.

Share this post


Link to post
Share on other sites
Advertisement

You probably need to switch to shadow maps for that one, or else you explicit leaf geometry to render the shadow volume.

Share this post


Link to post
Share on other sites
I was thinking about this very issue this weekend. I think you could combine the stencil shadow and the leaf shadow. For instance, set destalpha based on both the stencil saying 'shadow' and a projected texture saying 'shadow'.

But, I'm not sure what benefit this has over just projected shadows or shadow maps. Perhaps you could use stencil for the trunk & branches, but projected textures for the leaves...

Share this post


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

  • Advertisement