mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-05 05:34:20 +00:00
Switches to using the same varying for byte and subpixel selection.
This commit is contained in:
parent
1a9cea050e
commit
69dc3cc4d8
@ -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);"
|
||||
"}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user