Entries from 2023-03-26 to 1 day
// キャンバス要素を取得 const canvas = document.getElementById("canvas"); // WebGLコンテキストを取得 const gl = canvas.getContext("webgl"); // 頂点シェーダのソースコード const vertexShaderSource = ` attribute vec4 a_position; void main() {…
// キャンバス要素を取得 const canvas = document.getElementById("canvas"); // WebGLコンテキストを取得 const gl = canvas.getContext("webgl"); // 頂点シェーダのソースコード const vertexShaderSource = ` attribute vec4 a_position; void main() {…