Zylann / godot_heightmap_plugin

HeightMap terrain for Godot implemented in GDScript
Other
1.72k stars 160 forks source link

The textures doesn't load on HTML5 #265

Open ultrazar opened 3 years ago

ultrazar commented 3 years ago

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

ultrazar commented 3 years ago

Update: It actually works using Classic4Lite shader

Zylann commented 3 years ago

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.

ultrazar commented 3 years ago

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