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.
//}
Live Preview
Tags
Cruelty Squad, dizzy, flesh rat, nausea, Psycho Patrol R, trippy, warp
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

More from ekkochambers

Related shaders

Comments 3

  1. Oh damn, nice shader. This really giving me the CEO mindset :D
    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

    2
    1. 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

      2
      1. 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

        1