Created
May 10, 2020 20:25
-
-
Save cmbruns/8aaae512d4f77e5541658fb409e49c9d to your computer and use it in GitHub Desktop.
This file contains 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
#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