Skip to content

Variable: POST_SHADER_TEMPLATE ​

ts
const POST_SHADER_TEMPLATE: "/* @shader {\n    \"domain\": \"post\",\n    \"uniforms\": {\n        \"amount\": { \"type\": \"float\", \"default\": 1, \"min\": 0, \"max\": 1 }\n    }\n} */\n\n// color: the camera's image at uv · uv: 0..1 over the viewport, y-up.\n// Also available: uTime, uSize (viewport px), sampleScreen(uv), sampleTexture(tex, uv).\nvec4 post(vec4 color, vec2 uv)\n{\n    return vec4(mix(color.rgb, vec3(1.0) - color.rgb, amount), color.a);\n}\n";

© 2026 PlayAdGentic