Buckets:

imerfanrajabee's picture
download
raw
547 Bytes
import { Fn } from '../../tsl/TSLBase.js';
const F_Schlick = /*@__PURE__*/ Fn( ( { f0, f90, dotVH } ) => {
// Original approximation by Christophe Schlick '94
// float fresnel = pow( 1.0 - dotVH, 5.0 );
// Optimized variant (presented by Epic at SIGGRAPH '13)
// https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf
const fresnel = dotVH.mul( - 5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2();
return f0.mul( fresnel.oneMinus() ).add( f90.mul( fresnel ) );
} ); // validated
export default F_Schlick;

Xet Storage Details

Size:
547 Bytes
·
Xet hash:
2d84d7071c93994fdba7da8d6696f8d4e93be339f25207ef2036d8f937eb111a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.