Document the lack of dynamic loops in WebGL 1.0

I documented it in both places where it could be relevant to ensure
people don't miss it.

This closes #2980.
This commit is contained in:
Hugo Locurcio
2020-06-08 11:22:55 +02:00
parent c226f2c88b
commit 251b86949c
2 changed files with 11 additions and 0 deletions

View File

@@ -108,6 +108,12 @@ The default HTML page does not display the boot splash while loading. However,
the image is exported as a PNG file, so :ref:`custom HTML pages <doc_customizing_html5_shell>`
can display it.
Shader language limitations
~~~~~~~~~~~~~~~~~~~~~~~~~~~
When exporting a GLES2 project to HTML5, WebGL 1.0 will be used. WebGL 1.0
doesn't support dynamic loops, so shaders using those won't work there.
Unimplemented functionality
~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -437,6 +437,11 @@ Godot Shading language supports the most common types of flow control:
Keep in mind that, in modern GPUs, an infinite loop can exist and can freeze your application (including editor).
Godot can't protect you from this, so be careful not to make this mistake!
.. warning::
When exporting a GLES2 project to HTML5, WebGL 1.0 will be used. WebGL 1.0
doesn't support dynamic loops, so shaders using those won't work there.
Discarding
----------