mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-10 07:32:43 +00:00
16 lines
370 B
Text
16 lines
370 B
Text
|
#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);
|
||
|
}
|