UNPKG

playcanvas

Version:

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

20 lines (18 loc) 302 B
var cubeMapRotate_default = ( /* glsl */ ` #ifdef CUBEMAP_ROTATION uniform mat3 cubeMapRotationMatrix; #endif vec3 cubeMapRotate(vec3 refDir) { #ifdef CUBEMAP_ROTATION return refDir * cubeMapRotationMatrix; #else return refDir; #endif } ` ); export { cubeMapRotate_default as default };