UNPKG

playcanvas

Version:

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

17 lines (16 loc) 388 B
var cookie_blit_cube_default = ( /* glsl */ ` 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 { cookie_blit_cube_default as default };