patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

[OffTopic] Help me to make an animation noise #328

Closed xmha97 closed 1 year ago

xmha97 commented 1 year ago

Hi, there is the file below:

// Author @patriciogv - 2015
// http://patriciogonzalezvivo.com

#ifdef GL_ES
precision mediump float;
#endif

uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;

float random (vec2 st) {
    return fract(sin(dot(st.xy,
                         vec2(12.9898,78.233)))*
        43758.5453123);
}

void main() {
    vec2 st = gl_FragCoord.xy/u_resolution.xy;

    float rnd = random( st );

    gl_FragColor = vec4(vec3(rnd),1.0);
}

image I want to make an animation noise. Please help me.

patriciogonzalezvivo commented 1 year ago

Hi, this issue section is for reporting bugs, issues and proposing features of glslViewer. For general shader question please visit https://shader.zone/