no message
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
varying vec4 color;
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform vec4 myColor;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec4 c = myColor * color;
|
||||
gl_FragColor = texture2D(tex, texCoord) * c;
|
||||
}
|
||||
@@ -1,23 +1,16 @@
|
||||
varying vec4 color;
|
||||
varying vec2 texCoord;
|
||||
in vec4 color;
|
||||
in vec2 texCoord;
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform vec4 myColor;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec4 c = myColor * color;
|
||||
|
||||
vec4 rgba = texture2D(tex, texCoord);
|
||||
vec4 intensity;
|
||||
|
||||
if(fract(gl_FragCoord.y * (0.5 * 4.0 / 3.0)) > 0.5) {
|
||||
intensity = vec4(0);
|
||||
} else {
|
||||
intensity = smoothstep(0.2, 0.8, rgba) + normalize(rgba);
|
||||
}
|
||||
|
||||
fragColor = intensity * -0.25 + rgba * 1.1;
|
||||
}
|
||||
vec4 intensity = fract(gl_FragCoord.y * (0.5 * 4.0 / 3.0)) > 0.5
|
||||
? vec4(0)
|
||||
: smoothstep(0.2, 0.8, rgba) + normalize(rgba);
|
||||
|
||||
fragColor = intensity * -0.25 + rgba * 1.1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user