mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-24 09:10:05 +01:00
working on camera into of
This commit is contained in:
11
shader_experiments/invert_effect.frag
Normal file
11
shader_experiments/invert_effect.frag
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
varying vec2 texcoord0;
|
||||
uniform sampler2D tex0;
|
||||
uniform vec2 u_resolution;
|
||||
uniform float u_time;
|
||||
|
||||
void main() {
|
||||
vec4 texColour = texture2D(tex0, texcoord0);
|
||||
gl_FragColor = vec4(1.0-texColour.r,1.0-texColour.g,1.0-texColour.b,texColour.a);
|
||||
}
|
||||
Reference in New Issue
Block a user