84 lines
1.8 KiB
JavaScript
84 lines
1.8 KiB
JavaScript
/**
|
|
* @module ol/render/webgl/texturereplay/defaultshader/Locations
|
|
*/
|
|
// This file is automatically generated, do not edit
|
|
// Run `make shaders` to generate, and commit the result.
|
|
|
|
import {DEBUG as DEBUG_WEBGL} from '../../../../webgl.js';
|
|
|
|
/**
|
|
* @constructor
|
|
* @param {WebGLRenderingContext} gl GL.
|
|
* @param {WebGLProgram} program Program.
|
|
* @struct
|
|
*/
|
|
class Locations {
|
|
|
|
constructor(gl, program) {
|
|
|
|
/**
|
|
* @type {WebGLUniformLocation}
|
|
*/
|
|
this.u_projectionMatrix = gl.getUniformLocation(
|
|
program, DEBUG_WEBGL ? 'u_projectionMatrix' : 'h');
|
|
|
|
/**
|
|
* @type {WebGLUniformLocation}
|
|
*/
|
|
this.u_offsetScaleMatrix = gl.getUniformLocation(
|
|
program, DEBUG_WEBGL ? 'u_offsetScaleMatrix' : 'i');
|
|
|
|
/**
|
|
* @type {WebGLUniformLocation}
|
|
*/
|
|
this.u_offsetRotateMatrix = gl.getUniformLocation(
|
|
program, DEBUG_WEBGL ? 'u_offsetRotateMatrix' : 'j');
|
|
|
|
/**
|
|
* @type {WebGLUniformLocation}
|
|
*/
|
|
this.u_opacity = gl.getUniformLocation(
|
|
program, DEBUG_WEBGL ? 'u_opacity' : 'k');
|
|
|
|
/**
|
|
* @type {WebGLUniformLocation}
|
|
*/
|
|
this.u_image = gl.getUniformLocation(
|
|
program, DEBUG_WEBGL ? 'u_image' : 'l');
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
this.a_position = gl.getAttribLocation(
|
|
program, DEBUG_WEBGL ? 'a_position' : 'c');
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
this.a_texCoord = gl.getAttribLocation(
|
|
program, DEBUG_WEBGL ? 'a_texCoord' : 'd');
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
this.a_offsets = gl.getAttribLocation(
|
|
program, DEBUG_WEBGL ? 'a_offsets' : 'e');
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
this.a_opacity = gl.getAttribLocation(
|
|
program, DEBUG_WEBGL ? 'a_opacity' : 'f');
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
this.a_rotateWithView = gl.getAttribLocation(
|
|
program, DEBUG_WEBGL ? 'a_rotateWithView' : 'g');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default Locations;
|