UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

16 lines (13 loc) 244 B
var iorPS = /* glsl */ ` #ifdef STD_IOR_CONSTANT uniform float material_refractionIndex; #endif void getIor() { #ifdef STD_IOR_CONSTANT dIor = material_refractionIndex; #else dIor = 1.0 / 1.5; #endif } `; export { iorPS as default };