FWGS / xash3d-fwgs

Xash3D FWGS engine.
1.51k stars 226 forks source link

Stencil shadows. #28

Open nekonomicon opened 5 years ago

nekonomicon commented 5 years ago

Valve disabled stencil shadows in the latest WON and steam HL releases for no apparent reason. Stencil shadows was disabled in Xash3D too, because some mods inject GL_StudioDrawShadows function in game libraries. An example: https://github.com/nekonomicon/hlsdk-xash3d/blob/zombie-x/cl_dll/hud.cpp#L363 https://github.com/nekonomicon/hlsdk-xash3d/blob/zombie-x/cl_dll/StudioModelRenderer.cpp#L36 https://github.com/nekonomicon/hlsdk-xash3d/blob/zombie-x/cl_dll/StudioModelRenderer.cpp#L1754

But this hack will work only on x86 windows. What about other platforms?

lewa-j commented 5 years ago

There is an apparent reason. It looks like shit.

mittorn commented 5 years ago

add this to mobility interface?

a1batross commented 5 years ago

I don't think it's even worth to have stencil shadows. They don't cast properly anyway.

mittorn commented 5 years ago

Registering r_shadows with other name will not break snything. But i think, we should check this hack on x86/mingw and maybe add assembly imolementation for function begin for gcc to ensure compatibility

mittorn commented 5 years ago

And if mod supports stencil shadows, it should have models and lighting that looks good with it

Idiot64 commented 3 years ago

ey, i turned it on

they ARE buggy, but the feeling is 10x better and really cool

it makes up for the buggynes!

Idiot64 commented 3 years ago

image

Idiot64 commented 3 years ago

i require