Finetune retrofx math.
This commit is contained in:
parent
fd8701dd25
commit
3d878cf6a6
1 changed files with 5 additions and 2 deletions
|
|
@ -5,6 +5,9 @@
|
|||
void main()
|
||||
{
|
||||
// far more simplified when the actual scale calculations are on the zscript side
|
||||
ivec2 ncoord = ivec2((floor(TexCoord*bresl)/bresl)*textureSize(InputTexture,0));
|
||||
FragColor = texelFetch(InputTexture,ncoord,0);
|
||||
vec2 ncoord = floor(TexCoord*bresl)/bresl;
|
||||
FragColor = vec4(textureGather(InputTexture,ncoord,0).y,
|
||||
textureGather(InputTexture,ncoord,1).y,
|
||||
textureGather(InputTexture,ncoord,2).y,
|
||||
textureGather(InputTexture,ncoord,3).y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue