2
0
ncannasse 9 жил өмнө
parent
commit
94e2cc2e7d

+ 2 - 2
h3d/shader/VolumeDecal.hx

@@ -34,10 +34,10 @@ class VolumeDecal extends hxsl.Shader {
 
 
 	};
 	};
 
 
-	public function new() {
+	public function new( objectWidth : Float, objectHeight : Float ) {
 		super();
 		super();
 		normal.set(0, 0, 1);
 		normal.set(0, 0, 1);
-		scale.set(1, 1);
+		scale.set(1/objectWidth, 1/objectHeight);
 	}
 	}
 
 
 }
 }