{"size": 618, "ext": "js", "max_stars_repo_path": "src/components/webgl/shaders/program_info.js", "max_stars_repo_name": "elisherer/devek", "max_stars_repo_stars_event_min_datetime": "2019-06-14T08:56:51.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-09T01:55:32.000Z", "max_issues_repo_path": "src/components/webgl/shaders/program_info.js", "max_issues_repo_name": "elisherer/devek", "max_issues_repo_issues_event_min_datetime": "2019-12-15T14:54:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-16T07:19:51.000Z", "max_forks_repo_path": "src/components/webgl/shaders/program_info.js", "max_forks_repo_name": "elisherer/devek", "max_forks_repo_forks_event_min_datetime": "2019-06-14T12:14:41.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-14T12:14:41.000Z"}
{"max_stars_count": 12, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 36.3529411765, "max_line_length": 73, "alphanum_fraction": 0.7588996764}
const getProgramInfo = (gl, program) => ({
	program,
	attribLocations: {
		vertexPosition: gl.getAttribLocation(program, "aVertexPosition"),
		vertexNormal: gl.getAttribLocation(program, "aVertexNormal"),
		textureCoordinates: gl.getAttribLocation(program, "aTextureCoord")
	},
	uniformLocations: {
		projectionMatrix: gl.getUniformLocation(program, "uProjectionMatrix"),
		modelViewMatrix: gl.getUniformLocation(program, "uModelViewMatrix"),
		normalMatrix: gl.getUniformLocation(program, "uNormalMatrix"),
		uSampler: gl.getUniformLocation(program, "uSampler")
	}
});

export default getProgramInfo;
