program.js
// Looks up the locations of uniform variables once.
Looks up the locations of uniform variables once.
Looks up the locations of uniform variables once .
function findShaderVariables() {
    locations.modelView = gl.getUniformLocation(programId, "modelView");
	locations.normalMatrix = gl.getUniformLocation(programId, "normalMatrix");
    locations.projection = gl.getUniformLocation(programId, "projection");
	locations.renderTex = gl.getUniformLocation(programId, "renderTexture");
	locations.lightPosition = gl.getUniformLocation(programId, "lightPosition");
}
function findShaderVariables ( ) { locations . modelView = gl . getUniformLocation ( programId , "modelView" ) ; locations . normalMatrix = gl . getUniformLocation ( programId , "normalMatrix" ) ; locations . projection = gl . getUniformLocation ( programId , "projection" ) ; locations . renderTex = gl . getUniformLocation ( programId , "renderTexture" ) ; locations . lightPosition = gl . getUniformLocation ( programId , "lightPosition" ) ; }
Looks up the locations of uniform variables once.
Looks up the locations of uniform variables once .