添加关照、全局等高线、修改图层问题
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
import { normalGeometry } from '../../accessors/NormalNode.js';
|
||||
import { tslFn } from '../../shadernode/ShaderNode.js';
|
||||
|
||||
const getGeometryRoughness = tslFn( () => {
|
||||
|
||||
const dxy = normalGeometry.dFdx().abs().max( normalGeometry.dFdy().abs() );
|
||||
const geometryRoughness = dxy.x.max( dxy.y ).max( dxy.z );
|
||||
|
||||
return geometryRoughness;
|
||||
|
||||
} );
|
||||
|
||||
export default getGeometryRoughness;
|
Reference in New Issue
Block a user