You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
377 B
GLSL
14 lines
377 B
GLSL
#version 120
|
|
|
|
uniform sampler2D DiffuseSampler;
|
|
uniform sampler2D OutlineSampler;
|
|
|
|
varying vec2 texCoord;
|
|
varying vec2 oneTexel;
|
|
|
|
void main(){
|
|
vec4 diffuseTexel = texture2D(DiffuseSampler, texCoord);
|
|
vec4 outlineTexel = texture2D(OutlineSampler, texCoord);
|
|
gl_FragColor = vec4(diffuseTexel.rgb + diffuseTexel.rgb * outlineTexel.rgb * vec3(0.75), diffuseTexel.a);
|
|
}
|