UNPKG

playcanvas

Version:

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

16 lines (15 loc) 296 B
var cubeMapRotate_default = ` #ifdef CUBEMAP_ROTATION uniform cubeMapRotationMatrix: mat3x3f; #endif fn cubeMapRotate(refDir: vec3f) -> vec3f { #ifdef CUBEMAP_ROTATION return refDir * uniform.cubeMapRotationMatrix; #else return refDir; #endif } `; export { cubeMapRotate_default as default };