Explorar o código

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

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
0e992072c3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 ) {