Resolving Shadows Issues in Emscripten Builds Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Posts: 12
Joined: Tue Jan 17, 2023 10:25 pm

Resolving Shadows Issues in Emscripten Builds

Post by Cyberix3D »

Ogre Version: :13.6.1:
Operating System: :linux/windows:
Render System: :emscripten:

I am currently experiencing an issue with the shadows after building for emscripten.
The build was successful upon running the following commands:

Code: Select all

emcmake cmake .. -DCMAKE_BUILD_TYPE=Release
emmake make

However, the shadows are not displaying correctly and are appearing duplicated and flickering.

A demonstration of the issue can be found at this link:
Could anyone assist me in understanding if there are additional parameters that need to be added to the build process to correct this issue?

OGRE Team Member
OGRE Team Member
Posts: 1835
Joined: Sun Mar 30, 2014 2:51 pm
x 973

Re: Resolving Shadows Issues in Emscripten Builds

Post by paroj »

the issue is that clamp to border is not available on WebGL1 and the shadow texture is simply repeated.
This should fix the issue:

Alternatively, consider switching to WebGL2

Post Reply