UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

13 lines (11 loc) 319 B
var cookieBlitCubePS = ` varying vec2 uv0; uniform samplerCube blitTexture; uniform mat4 invViewProj; void main(void) { vec4 projPos = vec4(uv0 * 2.0 - 1.0, 0.5, 1.0); vec4 worldPos = invViewProj * projPos; gl_FragColor = textureCube(blitTexture, worldPos.xyz); } `; export { cookieBlitCubePS as default };