#VERTEX_SHADER Vertex vert(Vertex v) { return v; } #END_VERTEX_SHADER #FRAGMENT_SHADER float random(vec2 n, float offset ){ return .5 - fract(sin(dot(n.xy + vec2(offset, 0.), vec2(12.9898, 78.233)))* 43758.5453); } Color frag(Color col, Texture texture, Vertex v) { float amount = 0.1; float speed = 0.5; vec4 color = texture2D(texture, v.uv.xy); color += vec4(vec3(amount * random(v.uv.xy, .00001 * speed * jin_Time.x)), 1.); return color; } #END_FRAGMENT_SHADER