Disable Selfshadowing on Stencil Shadows?
Disable Selfshadowing on Stencil Shadows?
Is there a way to disable or remove selfshadowing on stencil shadows?
Re: Disable Selfshadowing on Stencil Shadows?
AFAIK the stencil shadow algorithm is Z-fail (quake 3 style) so it happens for your whole scene due to the stencilbuffer.
You could most probably disable the stencil test in the lighting pass manually on the mesh in question, but it would disable all shadows (not just from itself) on it.
You could most probably disable the stencil test in the lighting pass manually on the mesh in question, but it would disable all shadows (not just from itself) on it.
Re: Disable Selfshadowing on Stencil Shadows?
I see, so basically it is taken exactly or somehow similar from quake3? Would it be possible to use a similar shadow volume shader based solution without making any changes to the engine? thanks.devsh wrote:AFAIK the stencil shadow algorithm is Z-fail (quake 3 style) so it happens for your whole scene due to the stencilbuffer.
You could most probably disable the stencil test in the lighting pass manually on the mesh in question, but it would disable all shadows (not just from itself) on it.
Re: Disable Selfshadowing on Stencil Shadows?
No, you need to delve into engine or at least use something more custom than ISceneManager::drawAll().
Re: Disable Selfshadowing on Stencil Shadows?
I see. So it is still possible that I don't need to change any engine source code? I did find some addons/extensions which overrides or has its custom drawAll.devsh wrote:No, you need to delve into engine or at least use something more custom than ISceneManager::drawAll().