Rename _ol_webgl_Fragment_ to WebGLFragment
This commit is contained in:
@@ -11,17 +11,17 @@ import WebGLShader from '../webgl/Shader.js';
|
||||
* @param {string} source Source.
|
||||
* @struct
|
||||
*/
|
||||
const _ol_webgl_Fragment_ = function(source) {
|
||||
const WebGLFragment = function(source) {
|
||||
WebGLShader.call(this, source);
|
||||
};
|
||||
|
||||
inherits(_ol_webgl_Fragment_, WebGLShader);
|
||||
inherits(WebGLFragment, WebGLShader);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_webgl_Fragment_.prototype.getType = function() {
|
||||
WebGLFragment.prototype.getType = function() {
|
||||
return _ol_webgl_.FRAGMENT_SHADER;
|
||||
};
|
||||
export default _ol_webgl_Fragment_;
|
||||
export default WebGLFragment;
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
// Run `make shaders` to generate, and commit the result.
|
||||
|
||||
import {DEBUG_WEBGL} from '../../../index.js';
|
||||
import _ol_webgl_Fragment_ from '../../../webgl/Fragment.js';
|
||||
import WebGLFragment from '../../../webgl/Fragment.js';
|
||||
import _ol_webgl_Vertex_ from '../../../webgl/Vertex.js';
|
||||
|
||||
export const fragment = new _ol_webgl_Fragment_(DEBUG_WEBGL ?
|
||||
export const fragment = new WebGLFragment(DEBUG_WEBGL ?
|
||||
'precision mediump float;\n{{{originalFragmentSource}}}' :
|
||||
'precision mediump float;{{{fragmentSource}}}');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user