Cesium-Examples/libs/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.js

10 lines
217 B
JavaScript
Raw Permalink Normal View History

2025-03-11 08:25:45 +00:00
import { tslFn } from '../../shadernode/ShaderNode.js';
const BRDF_Lambert = tslFn( ( inputs ) => {
return inputs.diffuseColor.mul( 1 / Math.PI ); // punctual light
} ); // validated
export default BRDF_Lambert;