diff options
author | Mauro Persano <mauro.persano@kdab.com> | 2018-09-22 09:55:52 -0300 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2018-09-27 12:34:32 +0000 |
commit | 6eb906bf5770370a8a5c15568d9f9463863e53a4 (patch) | |
tree | dc7445a327e8fe25de4155abddba33a5ea0271c8 | |
parent | 565a89ac4303f31b091eba05174e9724355fb747 (diff) |
Use GLSL texture() instead of texture2D() on ES3
Change-Id: Icfec19e5bd76f6a6ca53700a5a3705aa97763859
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | src/render/materialsystem/prototypes/default.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/render/materialsystem/prototypes/default.json b/src/render/materialsystem/prototypes/default.json index 535f144d7..0b971f456 100644 --- a/src/render/materialsystem/prototypes/default.json +++ b/src/render/materialsystem/prototypes/default.json @@ -87,6 +87,15 @@ }, { "format": { + "api": "OpenGLES", + "major": 3, + "minor": 0 + }, + "substitution": "highp vec4 $color = texture($name, $coord);", + "headerSnippets": [ "uniform sampler2D $name;" ] + }, + { + "format": { "api": "OpenGLCoreProfile", "major": 3, "minor": 0 |