From 32e2eed2a003c9be98f344ae70248139162b6969 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 8 May 2024 18:37:48 +0200 Subject: Add a few comments --- lib/webgl_utils.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/webgl_utils.js') diff --git a/lib/webgl_utils.js b/lib/webgl_utils.js index 42bd8b6..b594050 100644 --- a/lib/webgl_utils.js +++ b/lib/webgl_utils.js @@ -35,6 +35,9 @@ export function initializeBuffers(gl) { } +/** + * Loads and compiles a shader + */ function loadShader(gl, type, source) { const shader = gl.createShader(type); -- cgit