|
@@ -52,6 +52,16 @@ class LightShadow {
|
|
|
*/
|
|
*/
|
|
|
this.bias = 0;
|
|
this.bias = 0;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * A node version of `bias`. Only supported with `WebGPURenderer`.
|
|
|
|
|
+ *
|
|
|
|
|
+ * If a bias node is defined, `bias` has no effect.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @type {?Node<float>}
|
|
|
|
|
+ * @default null
|
|
|
|
|
+ */
|
|
|
|
|
+ this.biasNode = null;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Defines how much the position used to query the shadow map is offset along
|
|
* Defines how much the position used to query the shadow map is offset along
|
|
|
* the object normal. The default is `0`. Increasing this value can be used to
|
|
* the object normal. The default is `0`. Increasing this value can be used to
|
|
@@ -292,6 +302,8 @@ class LightShadow {
|
|
|
|
|
|
|
|
this.mapSize.copy( source.mapSize );
|
|
this.mapSize.copy( source.mapSize );
|
|
|
|
|
|
|
|
|
|
+ this.biasNode = source.biasNode;
|
|
|
|
|
+
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
|
|
}
|
|
}
|