github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
// luma.gl, MIT license
|
|
UNCOV
2
|
// Copyright (c) vis.gl contributors
|
× |
UNCOV
3
|
|
× |
UNCOV
4
|
import {glsl} from '../../../lib/glsl-utils/highlight'; |
× |
UNCOV
5
|
|
× |
UNCOV
6
|
const fs = glsl`\ |
× |
UNCOV
7
|
float random(vec3 scale, float seed) { |
× |
UNCOV
8
|
/* use the fragment position for a different seed per-pixel */
|
× |
UNCOV
9
|
return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed); |
× |
UNCOV
10
|
} |
× |
UNCOV
11
|
`;
|
× |
UNCOV
12
|
|
× |
UNCOV
13
|
/** Quick random generator for fragment shaders */
|
× |
UNCOV
14
|
export const random = { |
× |
UNCOV
15
|
name: 'random', |
× |
UNCOV
16
|
fs |
× |
UNCOV
17
|
}; |
× |