prevent issues on picky GPUs/compilers

This commit is contained in:
hizzlekizzle 2018-07-19 09:33:42 -05:00 committed by GitHub
parent bc0e39025b
commit 33129be84e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ void main()
{ {
float texel = floor(data_pix_no); float texel = floor(data_pix_no);
float phase = data_pix_no - texel; float phase = data_pix_no - texel;
float base_phase = phase.x - 0.5; float base_phase = phase - 0.5;
vec2 tex = vec2((texel + 0.5) * global.SourceSize.z, vTexCoord.y); vec2 tex = vec2((texel + 0.5) * global.SourceSize.z, vTexCoord.y);
vec3 col = vec3(0.0); vec3 col = vec3(0.0);