Sha256: 6be38e36c4ce5cd5cfd2be994fbefc6984c659d907aaa5cdac3576f0a7e6b2a2

Contents?: true

Size: 150 Bytes

Versions: 11

Compression:

Stored size: 150 Bytes

Contents

// Random number generator (not brilliant, but it is quick).

float rand(vec2 co) {
	return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
danabr75-ashton-0.1.5 lib/ashton/shaders/include/rand.glsl
ashton-0.1.6 lib/ashton/shaders/include/rand.glsl
ashton-0.1.5 lib/ashton/shaders/include/rand.glsl
ashton-0.1.4 lib/ashton/shaders/include/rand.glsl
ashton-0.1.3 lib/ashton/shaders/include/rand.glsl
ashton-0.1.2 lib/ashton/shaders/include/rand.glsl
ashton-0.1.1 lib/ashton/shaders/include/rand.glsl
ashton-0.1.0 lib/ashton/shaders/include/rand.glsl
ashton-0.0.4alpha lib/ashton/shaders/include/rand.glsl
ashton-0.0.3alpha lib/ashton/shaders/include/rand.glsl
ashton-0.0.2alpha lib/ashton/shaders/include/rand.glsl