Use named exports from ol/index.js
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @module ol/renderer/webgl/defaultmapshader/Locations
|
||||
*/
|
||||
// This file is automatically generated, do not edit
|
||||
import _ol_ from '../../../index.js';
|
||||
import {DEBUG_WEBGL} from '../../../index.js';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
@@ -16,37 +16,37 @@ var _ol_renderer_webgl_defaultmapshader_Locations_ = function(gl, program) {
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'u_texCoordMatrix' : 'd');
|
||||
program, DEBUG_WEBGL ? 'u_texCoordMatrix' : 'd');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_projectionMatrix = gl.getUniformLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'u_projectionMatrix' : 'e');
|
||||
program, DEBUG_WEBGL ? 'u_projectionMatrix' : 'e');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_opacity = gl.getUniformLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'u_opacity' : 'f');
|
||||
program, DEBUG_WEBGL ? 'u_opacity' : 'f');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'u_texture' : 'g');
|
||||
program, DEBUG_WEBGL ? 'u_texture' : 'g');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'a_position' : 'b');
|
||||
program, DEBUG_WEBGL ? 'a_position' : 'b');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, _ol_.DEBUG_WEBGL ? 'a_texCoord' : 'c');
|
||||
program, DEBUG_WEBGL ? 'a_texCoord' : 'c');
|
||||
};
|
||||
|
||||
export default _ol_renderer_webgl_defaultmapshader_Locations_;
|
||||
|
||||
Reference in New Issue
Block a user