e1d9ae1dd7
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>
18 lines
354 B
GLSL
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);
|
|
}
|