Skip to content

Commit

Permalink
modified timeout to 25sec for imageLight examples to work
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanKoundal committed Oct 27, 2023
1 parent 374051b commit b964403
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/webgl/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ p5.prototype.pointLight = function(v1, v2, v3, x, y, z) {
* imageLight(img);
* // This will use specular once we add it
* specularMaterial(20);
* shininess(slider.value());
* // shininess(slider.value());
* // orbitControl();
* noStroke();
* scale(2);
Expand Down
4 changes: 2 additions & 2 deletions src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
let smallWidth = 200;
let width = smallWidth;
let height = Math.floor(smallWidth * (input.height / input.width));
newGraphic = this._pInst.createGraphics(width, height, WEBGL);
newGraphic = this._pInst.createGraphics(width, height, constants.WEBGL);
// create graphics is like making a new sketch, all functions on main
// sketch it would be available on graphics
let irradiance = newGraphic.createShader(
Expand Down Expand Up @@ -1962,7 +1962,7 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
const size = 512;
let tex;
const levels = [];
const graphic = this._pInst.createGraphics(size, size, WEBGL);
const graphic = this._pInst.createGraphics(size, size, constants.WEBGL);
let count = Math.log(size)/Math.log(2);
graphic.pixelDensity(1);
// currently only 8 levels
Expand Down
2 changes: 1 addition & 1 deletion test/test-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{regex: /acceleration/, condition: Modernizr.webgl},
{regex: /sound/, condition: Modernizr.webaudio}
];
var MS_TIMEOUT = 4000;
var MS_TIMEOUT = 25000;
var fxns = [
'setup', 'draw', 'preload', 'mousePressed', 'mouseReleased',
'mouseMoved', 'mouseDragged', 'mouseClicked', 'mouseWheel',
Expand Down

0 comments on commit b964403

Please sign in to comment.