From 69dc3cc4d8ca7b9654a533c32ceb89b4aa5d1ffd Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 1 Jun 2018 22:52:29 -0400 Subject: [PATCH] Switches to using the same varying for byte and subpixel selection. --- Machines/AppleII/Video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/AppleII/Video.cpp b/Machines/AppleII/Video.cpp index 80342d7c1..3080357ed 100644 --- a/Machines/AppleII/Video.cpp +++ b/Machines/AppleII/Video.cpp @@ -27,7 +27,7 @@ VideoBase::VideoBase() : crt_->set_composite_sampling_function( "float composite_sample(usampler2D sampler, vec2 coordinate, vec2 icoordinate, float phase, float amplitude)" "{" - "uint texValue = texture(sampler, coordinate).r;" + "uint texValue = texture(sampler, vec2(icoordinate.x / (7*textureSize(sampler, 0).x), coordinate.y)).r;" "texValue >>= int(icoordinate.x) % 7;" "return float(texValue & 1u);" "}");