Named exports from WebGL shaders
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user