From 6d82829bf91a796d88f9338e5a70afe04a5f4370 Mon Sep 17 00:00:00 2001 From: xeolabs Date: Mon, 4 Apr 2016 13:18:33 +0200 Subject: [PATCH] Fix billboard flipping https://github.com/xeolabs/scenejs/issues/473 --- src/core/display/programSourceFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/display/programSourceFactory.js b/src/core/display/programSourceFactory.js index 55cd9ef4..ba65c67e 100644 --- a/src/core/display/programSourceFactory.js +++ b/src/core/display/programSourceFactory.js @@ -388,7 +388,7 @@ var SceneJS_ProgramSourceFactory = new (function () { // elements of the given matrix add("void billboard(inout mat4 mat) {"); - add(" mat[0][0] = -1.0;"); + add(" mat[0][0] = 1.0;"); add(" mat[0][1] = 0.0;"); add(" mat[0][2] = 0.0;"); if (states.billboard.spherical) {