Browse Source

optional format

ncannasse 7 years ago
parent
commit
90cb52b2d8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      h3d/pass/DefaultShadowMap.hx

+ 3 - 1
h3d/pass/DefaultShadowMap.hx

@@ -10,7 +10,9 @@ class DefaultShadowMap extends DirShadowMap {
 
 	public var color : h3d.Vector;
 
-	public function new(size=1024) {
+	public function new(size=1024,?format:hxd.PixelFormat) {
+		if( format != null )
+			this.format = format;
 		super(null);
 		this.size = size;
 		color = new h3d.Vector();