Accueil / npm / three@0.186.1 / src / nodes / functions / BSDF / EnvironmentBRDF.js
EnvironmentBRDF.js
import DFGLUT from './DFGLUT.js';
import { Fn } from '../../tsl/TSLBase.js';
const EnvironmentBRDF = /*@__PURE__*/ Fn( ( inputs ) => {
const { dotNV, specularColor, specularF90, roughness } = inputs;
const fab = DFGLUT( { dotNV, roughness } );
return specularColor.mul( fab.x ).add( specularF90.mul( fab.y ) );
} );
export default EnvironmentBRDF;