Skip to content

Commit 3e02954

Browse files
committed
shader
1 parent 9065d7f commit 3e02954

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/cgl/cgl_shader.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { escapeHTML } from "./cgl_utils.js";
77
import { CgShader } from "../cg/cg_shader.js";
88
import defaultShaderSrcVert from "./cgl_shader_default_glsl.vert";
99
import { CglContext } from "./cgl_state.js";
10+
import { Texture } from "./cgl_texture.js";
11+
import { Uniform } from "./cgl_shader_uniform.js";
1012

1113
// ---------------------------------------------------------------------------
1214

@@ -1227,8 +1229,6 @@ class CglShader extends CgShader
12271229
if (!CABLES.UI) this._log.log(this);
12281230
this._isValid = false;
12291231

1230-
// this._name = "errorshader";
1231-
// this.setSource(CglShader.getDefaultVertexShader(), CglShader.getErrorFragmentShader());
12321232
this._cgl.printError("shader link err");
12331233
}
12341234
}
@@ -1341,9 +1341,9 @@ class CglShader extends CgShader
13411341

13421342
/**
13431343
* push a texture on the stack. those textures will be bound when binding the shader. texture slots are automatically set
1344-
* @param {uniform} uniform texture uniform
1345-
* @param {texture} t texture
1346-
* @param {type} type texture type, can be ignored when TEXTURE_2D
1344+
* @param {Uniform} uniform texture uniform
1345+
* @param {Texture} t texture
1346+
* @param {number} type texture type, can be ignored when TEXTURE_2D
13471347
* @function pushTexture
13481348
* @memberof Shader
13491349
* @instance
@@ -1479,7 +1479,7 @@ CglShader.createShader = function (cgl, str, type, cglShader)
14791479

14801480
if (!cglShader.error.infoLog)
14811481
{
1482-
this._log.warn("empty shader info log", this._name);
1482+
cglShader._log.warn("empty shader info log", this._name);
14831483
return;
14841484
}
14851485

0 commit comments

Comments
 (0)