|
|
@@ -575,7 +575,7 @@ class PhysicalLightingModel extends LightingModel {
|
|
|
* @param {Object} lightData - The light data.
|
|
|
* @param {NodeBuilder} builder - The current node builder.
|
|
|
*/
|
|
|
- direct( { lightDirection, lightColor, reflectedLight } ) {
|
|
|
+ direct( { lightDirection, lightColor, reflectedLight }, /* builder */ ) {
|
|
|
|
|
|
const dotNL = normalView.dot( lightDirection ).clamp();
|
|
|
const irradiance = dotNL.mul( lightColor );
|
|
|
@@ -608,7 +608,7 @@ class PhysicalLightingModel extends LightingModel {
|
|
|
* @param {Object} input - The input data.
|
|
|
* @param {NodeBuilder} builder - The current node builder.
|
|
|
*/
|
|
|
- directRectArea( { lightColor, lightPosition, halfWidth, halfHeight, reflectedLight, ltc_1, ltc_2 } ) {
|
|
|
+ directRectArea( { lightColor, lightPosition, halfWidth, halfHeight, reflectedLight, ltc_1, ltc_2 }, /* builder */ ) {
|
|
|
|
|
|
const p0 = lightPosition.add( halfWidth ).sub( halfHeight ); // counterclockwise; light shines in local neg z direction
|
|
|
const p1 = lightPosition.sub( halfWidth ).sub( halfHeight );
|