UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

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