mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-21 01:54:59 +02:00
add mc_kuwahara_shader
This commit is contained in:
20
mc_kuwahara_shader/shaders/gbuffers_terrain.fsh
Normal file
20
mc_kuwahara_shader/shaders/gbuffers_terrain.fsh
Normal file
@@ -0,0 +1,20 @@
|
||||
#version 150
|
||||
|
||||
/* DRAWBUFFERS:0 */
|
||||
|
||||
uniform sampler2D gtexture;
|
||||
uniform sampler2D lightmap;
|
||||
|
||||
in vec2 texCoord;
|
||||
in vec4 tintColor;
|
||||
in vec2 lightCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
vec4 color = texture(gtexture, texCoord);
|
||||
if (color.a < 0.1) discard;
|
||||
color *= tintColor;
|
||||
color.rgb *= texture(lightmap, lightCoord).rgb;
|
||||
fragColor = color;
|
||||
}
|
||||
Reference in New Issue
Block a user