Bobo.Bobo
08-29-2004, 04:09 AM
Hi,
Do you have any ideas how to make such thing:
I'm doing one pass for every light in the scene and I have stencil shadows. I want to add transparent obiects that are affected by shadows.
I'm making first pass for depth only (and ambient light) so I cannot modify depth by transparent obiects, because after that I wouldn't be possible to render obiects behind transparent one. And if I render transparent obiect and in next pass for next light I render obiect behind this transparent one won't be visible.
I can render transparent obiects after rendering all lights, but this needs to render shadow volumes one more time for every light.
I dont't have any idea so I think I'm gonna make transparent obiects without shadows but I'm very curious how to make it with shadows without rendering volumes two times.
Do you have any ideas how to make such thing:
I'm doing one pass for every light in the scene and I have stencil shadows. I want to add transparent obiects that are affected by shadows.
I'm making first pass for depth only (and ambient light) so I cannot modify depth by transparent obiects, because after that I wouldn't be possible to render obiects behind transparent one. And if I render transparent obiect and in next pass for next light I render obiect behind this transparent one won't be visible.
I can render transparent obiects after rendering all lights, but this needs to render shadow volumes one more time for every light.
I dont't have any idea so I think I'm gonna make transparent obiects without shadows but I'm very curious how to make it with shadows without rendering volumes two times.