UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

15 lines (13 loc) 232 B
var iorPS = ` #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 { iorPS as default };