Browse Source

Merge pull request #2926 from skyace65/GLSLPerformance

Add note about shader function performance in GLES2
Nathan Lovato 5 years ago
parent
commit
bbfa5bee8e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tutorials/misc/gles2_gles3_differences.rst

+ 2 - 0
tutorials/misc/gles2_gles3_differences.rst

@@ -158,6 +158,8 @@ For a complete list of built-in GLSL functions see the :ref:`Shading Language do
 | vec_type **fwidth** ( vec_type p )                                                          |                                                  |
 | vec_type **fwidth** ( vec_type p )                                                          |                                                  |
 +---------------------------------------------------------------------------------------------+--------------------------------------------------+
 +---------------------------------------------------------------------------------------------+--------------------------------------------------+
 
 
+.. note:: Functions not in GLES2's GLSL were added with Godots own shader standard library. These functions may perform worse in GLES2 compared to GLES3.
+
 ``textureSize()`` workaround
 ``textureSize()`` workaround
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^