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 GNU GPL v.3 license and can be used freely. 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

guest

3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
TTien63
1 day ago

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

TTien63
10 hours ago
Reply to  ekkochambers

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