@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 470 B
JavaScript
import{S as e}from"./index-BPURObVq.esm.min.js";const r="fresnelFunction",n="#ifdef FRESNEL\nfn computeFresnelTerm(viewDirection: vec3f,worldNormal: vec3f,bias: f32,power: f32)->f32\n{let fresnelTerm: f32=pow(bias+abs(dot(viewDirection,worldNormal)),power);return clamp(fresnelTerm,0.,1.);}\n#endif\n";e.IncludesShadersStoreWGSL[r]||(e.IncludesShadersStoreWGSL[r]=n);const o={name:r,shader:n};export{o as f};
//# sourceMappingURL=fresnelFunction-55bywfOj.esm.min.js.map