UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

15 lines (12 loc) 311 B
import { fresnel_Schlick } from "../brdf/fresnel_Schlick.js"; /** * * @param {number} f0 * @param {number} f90 * @param {number} dotVH * @returns {number} */ export function bsdf_schlick(f0, f90, dotVH) { const fresnel = fresnel_Schlick(dotVH); return f0 + (f90 - f0) * fresnel; }