浏览代码

allow to set .shadows in pbr without cast/receive difference.

ncannasse 7 年之前
父节点
当前提交
0e992072c3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      h3d/mat/PbrMaterial.hx

+ 5 - 0
h3d/mat/PbrMaterial.hx

@@ -31,6 +31,11 @@ class PbrMaterial extends Material {
 		return this.blendMode = b;
 	}
 
+	override function set_receiveShadows(b) {
+		// don't add shadows shader here, we are not in forward
+		return receiveShadows = b;
+	}
+
 	override function getDefaultProps( ?type : String ) : Any {
 		var props : PbrProps;
 		switch( type ) {