Buckets:
| import { normalView } from '../../accessors/Normal.js'; | |
| import { float, Fn } from '../../tsl/TSLBase.js'; | |
| const getGeometryRoughness = /*@__PURE__*/ Fn( ( builder ) => { | |
| if ( builder.geometry.hasAttribute( 'normal' ) === false ) { | |
| return float( 0 ); | |
| } | |
| const dxy = normalView.dFdx().abs().max( normalView.dFdy().abs() ); | |
| const geometryRoughness = dxy.x.max( dxy.y ).max( dxy.z ); | |
| return geometryRoughness; | |
| } ); | |
| export default getGeometryRoughness; | |
Xet Storage Details
- Size:
- 462 Bytes
- Xet hash:
- c65493405067e5e3a0d35332fc55b5b6f411b5d6ffbc85fb2cc688e7287804f1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.