diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2017-08-03 10:00:01 +0200 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@kdab.com> | 2017-09-27 18:11:01 +0000 |
commit | 1908a4e13bc85b1bb5a7d30a5e4a08850e46f4cd (patch) | |
tree | c939fa81eab714b634be30adabf53e6d310a2fa4 /src | |
parent | 67b76678d6d340147f094904146497dfd29d18a1 (diff) |
Add ES2 rules for the worldSpaceToTangentSpaceMatrix node prototype
Change-Id: I35c12c52a965a554b49cdb6ebb8f65658e8ecea3
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-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 429c435f4..97ce7e0fd 100644 --- a/src/render/materialsystem/prototypes/default.json +++ b/src/render/materialsystem/prototypes/default.json @@ -377,6 +377,15 @@ "rules": [ { "format": { + "api": "OpenGLES", + "major": 2, + "minor": 0 + }, + "substitution": "highp mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);", + "headerSnippets": [ "#pragma include :/shaders/es2/coordinatesystems.inc" ] + }, + { + "format": { "api": "OpenGLCoreProfile", "major": 3, "minor": 0 |