UNPKG

playcanvas

Version:

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

20 lines (18 loc) 323 B
var cubeMapRotate_default = ( /* wgsl */ ` #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 };