Alpha map in stencil shadow
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.
You probably need to switch to shadow maps for that one, or else you explicit leaf geometry to render the shadow volume.
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...
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...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement