瀏覽代碼

fixed GLSL output (close #115)

Nicolas Cannasse 9 年之前
父節點
當前提交
088249e2c0
共有 2 個文件被更改,包括 1 次插入2 次删除
  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(ToBool, "bool");
 		m.set(Texture2D, "_texture2D");
+		m.set(LReflect, "reflect");
 		for( g in m )
 			KWDS.set(g, true);
 		m;

+ 0 - 2
hxsl/SharedShader.hx

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