UNPKG

playcanvas

Version:

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

16 lines (15 loc) 244 B
var ior_default = ` #ifdef STD_IOR_CONSTANT uniform material_refractionIndex: f32; #endif fn getIor() { #ifdef STD_IOR_CONSTANT dIor = uniform.material_refractionIndex; #else dIor = 1.0 / 1.5; #endif } `; export { ior_default as default };