playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
18 lines (16 loc) • 365 B
JavaScript
var outputTex2D_default = (
/* wgsl */
`
varying vUv0: vec2f;
var source: texture_2d<f32>;
var sourceSampler: sampler;
@fragment fn fragmentMain(input : FragmentInput) -> FragmentOutput {
var output: FragmentOutput;
output.color = textureSample(source, sourceSampler, input.vUv0);
return output;
}
`
);
export {
outputTex2D_default as default
};