UNPKG

playcanvas

Version:

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

14 lines (13 loc) 335 B
var cookie_blit_cube_default = ` 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 };