From 1908a4e13bc85b1bb5a7d30a5e4a08850e46f4cd Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Thu, 3 Aug 2017 10:00:01 +0200 Subject: Add ES2 rules for the worldSpaceToTangentSpaceMatrix node prototype Change-Id: I35c12c52a965a554b49cdb6ebb8f65658e8ecea3 Reviewed-by: Sean Harmer --- src/render/materialsystem/prototypes/default.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 @@ -375,6 +375,15 @@ "matrix" ], "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", -- cgit v1.2.3