godot_heightmap_plugin
godot_heightmap_plugin copied to clipboard
The textures doesn't load on HTML5
Describe the bug When exporting to HTML5, the terrain loads fine and all the stuff. But the terrain it's completely black when using the Classic4 (the LowPoly works). I see that there's like hundreds of errors in the webconsole about WebGL.
To Reproduce Steps to reproduce the behavior:
- In the main demo, with any changes.
- Click on the html5 button
- See...
The errors: (x253): [.WebGL-0000180400183B80] GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow).
Environment
- OS: Windows, tested with chrome, edge and opera
- Graphics card GTX 750
- Godot version 3.3.2
- Renderer used: GLES3
Update: It actually works using Classic4Lite shader
Might be a limitation with WebGL? No clue what the error means in the context of the plugin, considering the differences between Classic4
and Classic4Lite
are just a few extra standard textures. It could also be that the maximum amount of samplers allowed by WebGL has been reached.
I literally don't know what I made, but now works fine. XD