]> OCCT Git - occt.git/commit
0032067: Visualization, TKOpenGl - shadowmap GLSL compilation error on WebGL 3.0
authorkgv <kgv@opencascade.com>
Tue, 19 Jan 2021 15:19:26 +0000 (18:19 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 20 Jan 2021 18:30:27 +0000 (21:30 +0300)
commitfe2a8faab6d66b11adcc2e977b1b3e425e3899b1
treec0a4bc87c87a95947bfc21eed125002e148a9fe9
parent7b5e532f8322b8767c202c5d24b5f554731a51fe
0032067: Visualization, TKOpenGl - shadowmap GLSL compilation error on WebGL 3.0

Shadowmap sampler is now passed as a dedicated argument
to occDirectionalLightShadow() to workaround strict GLSL syntax validator.
Fixed texture coordinates clamping range.

Shadow antialiasing is disabled on OpenGL ES 2.0.
src/OpenGl/OpenGl_ShaderManager.cxx
src/Shaders/DirectionalLightShadow.glsl
src/Shaders/Shaders_DirectionalLightShadow_glsl.pxx