Skip to content

Instantly share code, notes, and snippets.

@kism
Last active July 16, 2022 09:49
Show Gist options
  • Save kism/1802158df9ef734408194ff92e8b6d18 to your computer and use it in GitHub Desktop.
Save kism/1802158df9ef734408194ff92e8b6d18 to your computer and use it in GitHub Desktop.
Dolphin Emulator Integer Scale
void main()
{
//Make sure internal resolution is set to 1x
float2 pos = floor(GetCoordinates() * GetResolution()) * GetInvResolution();
float4 c0 = SampleLocation(pos);
SetOutput(float4(c0.r, c0.g, c0.b, c0.a));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment