Remove unused constants
This commit is contained in:
@@ -53,56 +53,6 @@ ol.renderer.webgl.map.shader.ColorVertex.OPTIMIZED_SOURCE = 'varying vec2 a;attr
|
||||
ol.renderer.webgl.map.shader.ColorVertex.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.map.shader.ColorVertex.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.map.shader.ColorVertex.OPTIMIZED_SOURCE;
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_texCoordMatrix =
|
||||
goog.DEBUG ? 'u_texCoordMatrix' : 'b';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_projectionMatrix =
|
||||
goog.DEBUG ? 'u_projectionMatrix' : 'c';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_colorMatrix =
|
||||
goog.DEBUG ? 'u_colorMatrix' : 'd';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_opacity =
|
||||
goog.DEBUG ? 'u_opacity' : 'e';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_texture =
|
||||
goog.DEBUG ? 'u_texture' : 'f';
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.attribute = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.attribute.a_position =
|
||||
goog.DEBUG ? 'a_position' : 'd';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Color.attribute.a_texCoord =
|
||||
goog.DEBUG ? 'a_texCoord' : 'e';
|
||||
/**
|
||||
* @constructor
|
||||
* @param {WebGLRenderingContext} gl GL.
|
||||
@@ -112,36 +62,36 @@ ol.renderer.webgl.map.shader.Color.Locations = function(gl, program) {
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_texCoordMatrix);
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texCoordMatrix' : 'b');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_projectionMatrix = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_projectionMatrix);
|
||||
this.u_projectionMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_projectionMatrix' : 'c');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_colorMatrix = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_colorMatrix);
|
||||
this.u_colorMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_colorMatrix' : 'd');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_opacity = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_opacity);
|
||||
this.u_opacity = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_opacity' : 'e');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.uniform.u_texture);
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texture' : 'f');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.attribute.a_position);
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_position' : 'd');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.map.shader.Color.attribute.a_texCoord);
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_texCoord' : 'e');
|
||||
};
|
||||
|
||||
@@ -53,50 +53,6 @@ ol.renderer.webgl.map.shader.DefaultVertex.OPTIMIZED_SOURCE = 'varying vec2 a;at
|
||||
ol.renderer.webgl.map.shader.DefaultVertex.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.map.shader.DefaultVertex.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.map.shader.DefaultVertex.OPTIMIZED_SOURCE;
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.uniform = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_texCoordMatrix =
|
||||
goog.DEBUG ? 'u_texCoordMatrix' : 'b';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_projectionMatrix =
|
||||
goog.DEBUG ? 'u_projectionMatrix' : 'c';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_opacity =
|
||||
goog.DEBUG ? 'u_opacity' : 'd';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_texture =
|
||||
goog.DEBUG ? 'u_texture' : 'e';
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.attribute = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.attribute.a_position =
|
||||
goog.DEBUG ? 'a_position' : 'd';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.map.shader.Default.attribute.a_texCoord =
|
||||
goog.DEBUG ? 'a_texCoord' : 'e';
|
||||
/**
|
||||
* @constructor
|
||||
* @param {WebGLRenderingContext} gl GL.
|
||||
@@ -106,31 +62,31 @@ ol.renderer.webgl.map.shader.Default.Locations = function(gl, program) {
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_texCoordMatrix);
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texCoordMatrix' : 'b');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_projectionMatrix = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_projectionMatrix);
|
||||
this.u_projectionMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_projectionMatrix' : 'c');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_opacity = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_opacity);
|
||||
this.u_opacity = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_opacity' : 'd');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.uniform.u_texture);
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texture' : 'e');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.attribute.a_position);
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_position' : 'd');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.map.shader.Default.attribute.a_texCoord);
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_texCoord' : 'e');
|
||||
};
|
||||
|
||||
@@ -53,38 +53,6 @@ ol.renderer.webgl.tilelayer.shader.Vertex.OPTIMIZED_SOURCE = 'varying vec2 a;att
|
||||
ol.renderer.webgl.tilelayer.shader.Vertex.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.tilelayer.shader.Vertex.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.tilelayer.shader.Vertex.OPTIMIZED_SOURCE;
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.uniform = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.uniform.u_tileOffset =
|
||||
goog.DEBUG ? 'u_tileOffset' : 'b';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.uniform.u_texture =
|
||||
goog.DEBUG ? 'u_texture' : 'c';
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.attribute = function() {};
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.attribute.a_position =
|
||||
goog.DEBUG ? 'a_position' : 'c';
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayer.shader.attribute.a_texCoord =
|
||||
goog.DEBUG ? 'a_texCoord' : 'd';
|
||||
/**
|
||||
* @constructor
|
||||
* @param {WebGLRenderingContext} gl GL.
|
||||
@@ -94,21 +62,21 @@ ol.renderer.webgl.tilelayer.shader.Locations = function(gl, program) {
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_tileOffset = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.tilelayer.shader.uniform.u_tileOffset);
|
||||
this.u_tileOffset = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_tileOffset' : 'b');
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(program,
|
||||
ol.renderer.webgl.tilelayer.shader.uniform.u_texture);
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texture' : 'c');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.tilelayer.shader.attribute.a_position);
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_position' : 'c');
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(program,
|
||||
ol.renderer.webgl.tilelayer.shader.attribute.a_texCoord);
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_texCoord' : 'd');
|
||||
};
|
||||
|
||||
@@ -74,37 +74,6 @@ goog.addSingletonGetter({{className}}Vertex);
|
||||
{{className}}Vertex.OPTIMIZED_SOURCE;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
{{namespace}}.uniform = function() {};
|
||||
{{#getUniforms}}
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
{{namespace}}.uniform.{{originalName}} =
|
||||
goog.DEBUG ? '{{originalName}}' : '{{shortName}}';
|
||||
{{/getUniforms}}
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
{{namespace}}.attribute = function() {};
|
||||
{{#getAttributes}}
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
{{namespace}}.attribute.{{originalName}} =
|
||||
goog.DEBUG ? '{{originalName}}' : '{{shortName}}';
|
||||
{{/getAttributes}}
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
@@ -117,15 +86,15 @@ goog.addSingletonGetter({{className}}Vertex);
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.{{originalName}} = gl.getUniformLocation(program,
|
||||
{{namespace}}.uniform.{{originalName}});
|
||||
this.{{originalName}} = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? '{{originalName}}' : '{{shortName}}');
|
||||
{{/getUniforms}}
|
||||
{{#getAttributes}}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.{{originalName}} = gl.getAttribLocation(program,
|
||||
{{namespace}}.attribute.{{originalName}});
|
||||
this.{{originalName}} = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? '{{originalName}}' : '{{shortName}}');
|
||||
{{/getAttributes}}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user