Open AlexTerry1024 opened 2 years ago
@AlexTerry1024
Please review the first lesson: https://webgl2fundamentals.org/webgl/lessons/webgl-fundamentals.html
// three 2d points var positions = [ 0, 0, 0, 0.5, 0.7, 0, ];
So the positions you given will draw two triangles, they fill the entire canvas.
Hello, How are you?
createBufferAndSetupAttribute(positionLoc, [ -1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1, ]);
For those position, I hope you explain the position usage.
Thank you.