Last active
March 15, 2020 06:35
-
-
Save drawcode/57a9fad04c3550e37e3890e110afe736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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