Skip to content

Instantly share code, notes, and snippets.

@MateSteinforth
Created June 16, 2022 12:58
Show Gist options
  • Select an option

  • Save MateSteinforth/b759b106d0c12e71a894127afba69626 to your computer and use it in GitHub Desktop.

Select an option

Save MateSteinforth/b759b106d0c12e71a894127afba69626 to your computer and use it in GitHub Desktop.
//==============================================================================
// Shadow
//==============================================================================
#import <utils>
using namespace std;
vec4 main() { return vec4(vec3(0.0), smoothstep(0.5, 0.0, safeDistance(fragment(getVertexTexCoord()), vec2(0.5)))); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment