Переглянути джерело

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 ) {