UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

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