Browse Source

forced initializers

ncannasse 9 years ago
parent
commit
94e2cc2e7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      h3d/shader/VolumeDecal.hx

+ 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();
 		normal.set(0, 0, 1);
-		scale.set(1, 1);
+		scale.set(1/objectWidth, 1/objectHeight);
 	}
 
 }