diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-07 22:37:27 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-07 22:37:27 +0200 |
| commit | 362f91160b243453578633e3f9af67ce40179d8c (patch) | |
| tree | a9ee95e2f8a9c59189ea904ce87bfe54ed5be107 /lib/webgl_utils.js | |
| parent | 5f6ef99eae91f53239f08143cead1249893fef81 (diff) | |
Make 3D
Diffstat (limited to 'lib/webgl_utils.js')
| -rw-r--r-- | lib/webgl_utils.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/webgl_utils.js b/lib/webgl_utils.js index 1386bf7..42bd8b6 100644 --- a/lib/webgl_utils.js +++ b/lib/webgl_utils.js @@ -25,14 +25,14 @@ export function initializeShaderProgram(gl, vertexShaderSource, fragmentShaderSo */ export function initializeBuffers(gl) { - const positionBuffer = gl.createBuffer(); + const positionBuffer = gl.createBuffer(); - gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer); + gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer); - return { - position: positionBuffer - }; - } + return { + position: positionBuffer + }; +} function loadShader(gl, type, source) { |