Explorar el Código

"sample" not allowed in JS shaders (#1038)

Nick hace 3 años
padre
commit
825dfbec60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hxsl/GlslOut.hx

+ 1 - 1
hxsl/GlslOut.hx

@@ -4,7 +4,7 @@ import hxsl.Ast;
 class GlslOut {
 
 	static var KWD_LIST = [
-		"input", "output", "discard",
+		"input", "output", "discard", #if js "sample", #end
 		"dvec2", "dvec3", "dvec4", "hvec2", "hvec3", "hvec4", "fvec2", "fvec3", "fvec4",
 		"int", "float", "bool", "long", "short", "double", "half", "fixed", "unsigned", "superp",
 		"lowp", "mediump", "highp", "precision", "invariant", "discard",