I’m trying to work out how I can fake a sunlight-through-trees effect for a single tree.
I’ve found someone recommending using light cookies to create the effect for a single light (unity - procedural forest canopy for terrain lighting - Game Development Stack Exchange ) which creates a nice forest floor effect for the whole scene, but how could I do that for a single tree in the middle of a field?
Only the tree’s shadow would need that effect, while the rest of the scene would use normal lighting.
Spotlight cookie, you can have render the tree to a texture silouhette using a specific camera first, baked it and use it back
Wouldn’t a baked texture be static?
I’m looking for something that would respond to light changes and is animated (in both the dappled shadow effect on the floor and movement of the tree).
Preferably there’s some way to add a post-shadow texture to any given object. The texture being gray-scale and decides which parts of the shadow to show.
https://en.wikibooks.org/wiki/Cg_Programming/Unity/Cookies
Just wondering... is there any way to create animated cookie textures?
Cheers,
Jan
I'm trying to simulate slowly rolling clouds overhead and the shadows they create below using a projector. Problem is, changing the UV offset doesn't seem to have any effect for projectors. I realize you're "supposed" to use a clamped texture, but I'm just wondering if there's any way to do this? Perhaps by modifying the projector shader? I'm a complete n00b with it comes to writing shaders, so I'm not sure where to begin if that's a workable option.
Is it possible to animate cookies for lights to emulate a show light with a changing Gobo?
I have a nice rotating show light but I can't figure out if it's possible to attach the animating textures script on the Wiki to the Cookies and if so how? If not is there another way to animate a cookie?
Thanks.
Demo here of the scene so far: http://web.mac.com/hayesdavies/Portfolio/First%20build.html
(It takes a couple of minutes to load, it's the first time I've done this and I've got a lot to l…