Skip to content

Commit 0d86288

Browse files
committed
Use simpler random function so CI doesnt break
1 parent b70e8e8 commit 0d86288

4 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/visual/cases/webgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ visualSuite('WebGL', function() {
11541154
const skyRadius = p5.uniformFloat(90);
11551155

11561156
function rand2(st) {
1157-
return p5.fract(p5.sin(p5.dot(st, [12.9898, 78.233])) * 43758.5453123);
1157+
return p5.sin((st.x + st.y) * 123.456);
11581158
}
11591159

11601160
function semiSphere() {

test/unit/visual/cases/webgpu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ visualSuite("WebGPU", function () {
140140
const skyRadius = p5.uniformFloat(90);
141141

142142
function rand2(st) {
143-
return p5.fract(p5.sin(p5.dot(st, [12.9898, 78.233])) * 43758.5453123);
143+
return p5.sin((st.x + st.y) * 123.456);
144144
}
145145

146146
function semiSphere() {
-11.7 KB
Loading
-11.9 KB
Loading

0 commit comments

Comments
 (0)