LearnOpenGL/outlineshader.fs
Nigel 3d4d81f260 Added stencil testing
This demo show how to draw an outline around
an object.... very cool ! :)
2022-02-22 21:52:44 +01:00

13 lines
181 B
GLSL

#version 460 core
uniform vec3 outlineColor;
out vec4 FragColor;
in vec2 texCoords;
uniform sampler2D texture_diffuse1;
void main(){
FragColor = vec4(outlineColor, 1.0);
}