Advertisement
vitareinforce

struktur javascript dasar untuk web gl

Jan 25th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. /* eslint no-console:0 consistent-return:0 */
  2. "use strict";
  3.  
  4. function main() {
  5. // Get A WebGL context
  6. var canvas = document.querySelector("#c");
  7. var gl = canvas.getContext("webgl");
  8. if (!gl) {
  9. return;
  10. }
  11.  
  12. }
  13.  
  14. main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement