UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

11 lines (10 loc) 184 B
const KHR_materials_ior = { apply(data, material, textures) { if (data.hasOwnProperty("ior")) { material.refractionIndex = 1 / data.ior; } } }; export { KHR_materials_ior };