Skip to content

Instantly share code, notes, and snippets.

@cmbruns
Created May 10, 2020 20:25
Show Gist options
  • Save cmbruns/8aaae512d4f77e5541658fb409e49c9d to your computer and use it in GitHub Desktop.
Save cmbruns/8aaae512d4f77e5541658fb409e49c9d to your computer and use it in GitHub Desktop.
#version 450 core
in vec4 intersection_model; // in model space
out vec4 frag_color;
void main()
{
// simple but expensive 2: discard pixels not on the plane
if (intersection_model.w > 0)
discard;
frag_color = vec4(101/255.0, 67/255.0, 43/255.0, 1); // brown
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment