1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 02:22:39 +00:00

Support luminance formats as RGB.

This commit is contained in:
Thomas Harte
2026-02-06 18:09:30 -05:00
parent e59e51afa5
commit 1ca94e80c7
3 changed files with 10 additions and 3 deletions
@@ -73,12 +73,12 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--new=zxspectrum"
argument = "--new=macintosh"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--display=CompositeColour"
isEnabled = "NO">
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "/Users/thomasharte/Downloads/Program/Program.prg"
-1
View File
@@ -887,7 +887,6 @@ int main(int argc, char *argv[]) {
// Ask for no depth buffer but at least 1 bit of stencil.
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
SDL_GL_SetSwapInterval(1);
SDL_Window *window = nullptr;
@@ -128,6 +128,10 @@ lowp vec2 quadrature() {
);
}
lowp vec3 sample_rgb() {
return clamp(texture(source, coordinate).rrr * 255.0, vec3(0.0), vec3(1.0));
}
#endif
@@ -144,6 +148,10 @@ lowp vec2 quadrature() {
);
}
lowp vec3 sample_rgb() {
return texture(source, coordinate).rrr;
}
#endif