瀏覽代碼

optional format

ncannasse 7 年之前
父節點
當前提交
90cb52b2d8
共有 1 個文件被更改,包括 3 次插入1 次删除
  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();