Skip to content

Instantly share code, notes, and snippets.

@drawcode
Last active March 15, 2020 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drawcode/57a9fad04c3550e37e3890e110afe736 to your computer and use it in GitHub Desktop.
Save drawcode/57a9fad04c3550e37e3890e110afe736 to your computer and use it in GitHub Desktop.
// For use with e.g. Media Player Classic
// (c) Mindbleach 2020 , no rights reserved
// Treat as licensed under MIT if that makes life easier for you.
// After https://www.reddit.com/r/ContagiousLaughter/comments/fim6di/watching_twilight_on_a_poorly_hung_projector/
sampler s0 : register(s0);
float4 main(float2 tex : TEXCOORD0) : COLOR
{
tex.x += 0.01 * sin( 40 * tex.x );
tex.y += 0.03 * cos( 10 * tex.y ) ;
float4 color = tex2D(s0, tex);
return color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment