1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Switches to using the same varying for byte and subpixel selection.

This commit is contained in:
Thomas Harte 2018-06-01 22:52:29 -04:00
parent 1a9cea050e
commit 69dc3cc4d8

View File

@ -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);"
"}");