Named exports from WebGL shaders

This commit is contained in:
Frederic Junod
2018-02-08 14:52:23 +01:00
parent 2bf252ab0d
commit 83d530e181
23 changed files with 70 additions and 69 deletions

View File

@@ -11,7 +11,7 @@ import {lineStringIsClosed} from '../../geom/flat/topology.js';
import {isEmpty} from '../../obj.js';
import _ol_render_webgl_ from '../webgl.js';
import WebGLReplay from '../webgl/Replay.js';
import _ol_render_webgl_linestringreplay_defaultshader_ from '../webgl/linestringreplay/defaultshader.js';
import {fragment, vertex} from '../webgl/linestringreplay/defaultshader.js';
import _ol_render_webgl_linestringreplay_defaultshader_Locations_ from '../webgl/linestringreplay/defaultshader/Locations.js';
import _ol_webgl_ from '../../webgl.js';
import WebGLBuffer from '../../webgl/Buffer.js';
@@ -439,8 +439,8 @@ WebGLLineStringReplay.prototype.getDeleteResourcesFunction = function(context) {
*/
WebGLLineStringReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {
// get the program
const fragmentShader = _ol_render_webgl_linestringreplay_defaultshader_.fragment;
const vertexShader = _ol_render_webgl_linestringreplay_defaultshader_.vertex;
const fragmentShader = fragment;
const vertexShader = vertex;
const program = context.getProgram(fragmentShader, vertexShader);
// get the locations