Browse Source

fixed GLSL output (close #115)

Nicolas Cannasse 9 years ago
parent
commit
088249e2c0
2 changed files with 1 additions and 2 deletions
  1. 1 0
      hxsl/GlslOut.hx
  2. 0 2
      hxsl/SharedShader.hx

+ 1 - 0
hxsl/GlslOut.hx

@@ -19,6 +19,7 @@ class GlslOut {
 		m.set(ToFloat, "float");
 		m.set(ToFloat, "float");
 		m.set(ToBool, "bool");
 		m.set(ToBool, "bool");
 		m.set(Texture2D, "_texture2D");
 		m.set(Texture2D, "_texture2D");
+		m.set(LReflect, "reflect");
 		for( g in m )
 		for( g in m )
 			KWDS.set(g, true);
 			KWDS.set(g, true);
 		m;
 		m;

+ 0 - 2
hxsl/SharedShader.hx

@@ -68,10 +68,8 @@ class SharedShader {
 			});
 			});
 			c = c.next;
 			c = c.next;
 		}
 		}
-		#if flash
 		eval.inlineCalls = true;
 		eval.inlineCalls = true;
 		eval.unrollLoops = true;
 		eval.unrollLoops = true;
-		#end
 		var i = new ShaderInstance(eval.eval(data));
 		var i = new ShaderInstance(eval.eval(data));
 		#if debug
 		#if debug
 		Printer.check(i.shader, [data]);
 		Printer.check(i.shader, [data]);