Browse Source

Fix Texture2 having a reference to old pass.params

Aaron Santiago 9 years ago
parent
commit
44e4b0c3af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/shader/Texture2.hx

+ 1 - 1
h3d/shader/Texture2.hx

@@ -36,7 +36,7 @@ class Texture2 extends hxsl.Shader {
 	public function new(?tex) {
 		super();
 		this.texture = tex;
-		this.killAlphaThreshold = h3d.pass.Params.defaultKillAlphaThreshold;
+		this.killAlphaThreshold = h3d.mat.Defaults.defaultKillAlphaThreshold;
 	}
 
 }