mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-13 00:52:43 +00:00
a50683c84e
basically starting over... this is gonna be fun!
15 lines
370 B
GLSL
15 lines
370 B
GLSL
#version 150
|
|
|
|
uniform sampler2D DiffuseSampler;
|
|
uniform sampler2D OutlineSampler;
|
|
|
|
in vec2 texCoord;
|
|
in vec2 oneTexel;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main(){
|
|
vec4 diffuseTexel = texture(DiffuseSampler, texCoord);
|
|
vec4 outlineTexel = texture(OutlineSampler, texCoord);
|
|
fragColor = vec4(diffuseTexel.rgb + diffuseTexel.rgb * outlineTexel.rgb * vec3(0.75), 1.0);
|
|
}
|