"use strict"; var canvas; var gl; var numPositions = 6; var texSize = 256; var numChecks = 64; var near = 0.3; var far = 3.0; var fovy = 45.0; // Field-of-view in Y direction angle (in degrees) var aspect = 1.0; // Viewport aspect ratio var texture1, texture2, texture3, texture4; // Create a checkerboard pattern using floats var image1 = new Uint8Array(4*texSize*texSize); for ( var i = 0; i < texSize; i++ ) { var c; for ( var j = 0; j