添加关照、全局等高线、修改图层问题
This commit is contained in:
13
static/sdk/three/jsm/nodes/functions/BSDF/EnvironmentBRDF.js
Normal file
13
static/sdk/three/jsm/nodes/functions/BSDF/EnvironmentBRDF.js
Normal file
@ -0,0 +1,13 @@
|
||||
import DFGApprox from './DFGApprox.js';
|
||||
import { tslFn } from '../../shadernode/ShaderNode.js';
|
||||
|
||||
const EnvironmentBRDF = tslFn( ( inputs ) => {
|
||||
|
||||
const { dotNV, specularColor, specularF90, roughness } = inputs;
|
||||
|
||||
const fab = DFGApprox( { dotNV, roughness } );
|
||||
return specularColor.mul( fab.x ).add( specularF90.mul( fab.y ) );
|
||||
|
||||
} );
|
||||
|
||||
export default EnvironmentBRDF;
|
Reference in New Issue
Block a user