+1 vote

Hey guys,
I´m trying to recreate the following video in Godot Engine 3.1
Link: Youtube Video
But I´m failing. This is my shader code. It don´t shows the texture (yes I set it to the noise parameter)

shader_type canvas_item;

uniform sampler2D noise;
uniform float intensity = 0.05;

void fragment() {
    vec2 uv2 = vec2(SCREEN_UV);
    uv2 += (texture(noise, uv2 + vec2(TIME/10.0,TIME/1.0)).rgb.rb-vec2(.53))*intensity;
    COLOR = vec4(uv2, 1.0, 0.0);

I hope you can help me!


in Engine by (22 points)
recategorized by

1 Answer

+1 vote
Best answer


I´ve got the problem fixed with the help from clayjohn from the Godot Discord.

shader_type canvas_item;

uniform sampler2D noise;
uniform float intensity = 0.03;

void fragment() {
    vec2 uv = vec2(SCREEN_UV);
    uv += (texture(noise, uv + vec2(TIME/10.0,TIME/1.0)).rb-vec2(.53))*intensity;
    COLOR = vec4(texture(SCREEN_TEXTURE, uv).rgb, 1.0);
by (22 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.