UNPKG

playcanvas

Version:

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

16 lines (15 loc) 275 B
var cubeMapRotate_default = ` #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 };