UNPKG

playcanvas

Version:

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

16 lines (12 loc) 402 B
var cookieBlit2DPS = /* wgsl */ ` varying uv0: vec2f; var blitTexture: texture_2d<f32>; var blitTextureSampler : sampler; @fragment fn fragmentMain(input : FragmentInput) -> FragmentOutput { var output: FragmentOutput; output.color = textureSample(blitTexture, blitTextureSampler, input.uv0); return output; } `; export { cookieBlit2DPS as default };