Minor fixes

This commit is contained in:
schmelczerandras 2020-10-30 23:06:19 +01:00
parent 18f23a8d65
commit bc7c67368e
3 changed files with 7 additions and 6 deletions

View file

@ -9,13 +9,13 @@ import randomVertex from '../shaders/random-vs.glsl';
/**
* Create a renderer, draw a 2D noise texture with it,
* then destroy the used resources, while returning the generated texture
* in the form of a canvas.
* then destroy the used resources,
* while returning the generated texture in the form of a canvas.
*
* @param textureSize The resolution of the end result.
* @param textureSize The resolution of the end result
* @param scale A starting value can be 15
* @param amplitude A starting value can be 1
* @param ignoreWebGL2 Ignore WebGL2, even when its available.
* @param ignoreWebGL2 Ignore WebGL2, even when it's available
*/
export const renderNoise = async (
textureSize: vec2,
@ -39,7 +39,6 @@ export const renderNoise = async (
await compiler.compilePrograms();
await pogramPromise;
program.bind();
program.draw({
scale,
amplitude,