ESSL: always enable standard derivative functionality (dFdx, dFdy, fwidth) when available. Added 'shaderderivatives' graphics feature enum.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-09 16:55:21 -03:00
parent a4a62f390a
commit 34f25bd6c8
4 changed files with 7 additions and 1 deletions
+3
View File
@@ -62,6 +62,9 @@ GLSL.SYNTAX = [[
#ifdef GL_OES_texture_3D
#extension GL_OES_texture_3D : enable
#endif
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
]]
-- Uniforms shared by the vertex and pixel shader stages.