Skip to content

Instantly share code, notes, and snippets.

@rgngl
Created May 29, 2013 12:15
Show Gist options
  • Save rgngl/5669856 to your computer and use it in GitHub Desktop.
Save rgngl/5669856 to your computer and use it in GitHub Desktop.

Revisions

  1. rgngl created this gist May 29, 2013.
    3 changes: 3 additions & 0 deletions random.glsl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    float rand(vec3 co){
    return 0.9+0.1*fract(sin(co.z+dot(co.xy, vec2(12.9898,78.233))) * 43758.5453);
    }