Files
horizon-airdef/crates/horizon-shaderpack/tests/fixtures/passes/shaders/composite.fsh
T
Ludovic Marie e1d9ae1dd7 horizon-shaderpack: plan a Java pack's full-screen passes like Iris
The begin, prepare, deferred, composite and final passes of a program
folder: what each writes (the later of DRAWBUFFERS and RENDERTARGETS),
which side of every ping-ponged colour target it reads (Iris's
BufferFlipper, with flip.* overrides), mipmapped targets, scale.*, and
the targets' formats, clearing and sizes from the consts of every pass
in Iris's order. The preprocessor now keeps the directive comments of
active code, as Iris's does, so a DRAWBUFFERS in an #if'd out branch
doesn't count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:36:18 +02:00

18 lines
354 B
GLSL

#version 120
uniform sampler2D colortex3;
varying vec2 texcoord;
#ifdef BLOOM
/*
const int colortex1Format = R8;
*/
#endif
const bool colortex3MipmapEnabled = true; // read with mipmaps
void main() {
#if 0
/* DRAWBUFFERS:12 */
#endif
/* RENDERTARGETS: 0,1 */
gl_FragData[0] = texture2D(colortex3, texcoord);
gl_FragData[1] = vec4(1.0);
}