Cruelty Squad-Style Nausea Effect
It’s that effect that the enemies with the big head do in Cruelty Squad. You know the one
If you wish to do emotional or psychological harm against your players, this shader is for you! /hj
Shader code
shader_type canvas_item;
uniform sampler2D screen_tex: hint_screen_texture;
uniform float speed = 1.0;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
vec2 uv = vec2(UV.x * sin(TIME * speed), UV.y * sin(TIME * speed)) ;
vec4 screen = texture(screen_tex, uv);
COLOR = screen;
}
//void light() {
// // Called for every pixel for every light affecting the CanvasItem.
// // Uncomment to replace the default light processing function with this one.
//}

Oh damn, nice shader. This really giving me the CEO mindset 😀
Btw you can try to make a float parameter to control the intensity, this will be a lot easier for us to use.
Here is my minor adjustment for the fragment section:
uniform float intensity: hint_range(0.0, 1.0) = 1.0; // This one on top of the uniform section. // Update fragment to have intensity. void fragment() { vec2 warped_uv = vec2(UV.x * sin(TIME * speed), UV.y * sin(TIME * speed)); vec2 uv = mix(UV, warped_uv, intensity); vec4 screen = texture(screen_tex, uv); COLOR = screen; }Hope this will be helpful for others
Nice! Tbh I’ve only really recently gotten a hold of shaders, I’ve been learning it almost like how a mechanic teach someone how to fix a car, which is how I learned object-based programming as well
Funnily enough, I stumbled onto this effect partly on accident, I was just playing around with warping the screen with UV’s, then I did something close to this and was like “hey that kind of reminds me of that one effect from cruelty squad” so I just took it in that direction lol
Newbie too :3
But I started last year.
The shader can be improved a lot more but that part you will have to discover by yourself. Aaaand Godotshaders website have the Snippets section that can be a huge help for your journey.
Goodluck for the best, you will make the most beautiful nuke code in the future