summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2018-12-04 15:52:07 -0600
committerMichael Brasser <michael.brasser@live.com>2018-12-05 14:29:05 +0000
commitaac6ffa0310cd32d66623658b1a6ee33f51aba88 (patch)
treeab25290ae6eb4eadf50bd3c17696b34543116096 /src/render/materialsystem
parentfb497128383a9a03326996c6009383e73519c8be (diff)
Use the correct coordinatesystem include for ES3
Change-Id: Ibb45e3daf0712d87ebfdab5376d60db93abe006e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/materialsystem')
-rw-r--r--src/render/materialsystem/prototypes/default.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/render/materialsystem/prototypes/default.json b/src/render/materialsystem/prototypes/default.json
index 63c39164c..597de41c3 100644
--- a/src/render/materialsystem/prototypes/default.json
+++ b/src/render/materialsystem/prototypes/default.json
@@ -404,6 +404,15 @@
},
{
"format": {
+ "api": "OpenGLES",
+ "major": 3,
+ "minor": 0
+ },
+ "substitution": "highp mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);",
+ "headerSnippets": [ "#pragma include :/shaders/es3/coordinatesystems.inc" ]
+ },
+ {
+ "format": {
"api": "OpenGLCoreProfile",
"major": 3,
"minor": 0