godot_heightmap_plugin icon indicating copy to clipboard operation
godot_heightmap_plugin copied to clipboard

The textures doesn't load on HTML5

Open ultrazar opened this issue 3 years ago • 3 comments

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:

  1. In the main demo, with any changes.
  2. Click on the html5 button
  3. 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

ultrazar avatar Jun 08 '21 16:06 ultrazar

Update: It actually works using Classic4Lite shader

ultrazar avatar Jun 08 '21 16:06 ultrazar

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.

Zylann avatar Jun 08 '21 17:06 Zylann

I literally don't know what I made, but now works fine. XD

ultrazar avatar Jun 09 '21 19:06 ultrazar