BRDF_Lambert.js 249 B

123456789
  1. import { ShaderNode, mul } from '../../shadernode/ShaderNodeBaseElements.js';
  2. const BRDF_Lambert = new ShaderNode( ( inputs ) => {
  3. return mul( 1 / Math.PI, inputs.diffuseColor ); // punctual light
  4. } ); // validated
  5. export default BRDF_Lambert;