@@ -7,6 +7,8 @@ import { escapeHTML } from "./cgl_utils.js";
7
7
import { CgShader } from "../cg/cg_shader.js" ;
8
8
import defaultShaderSrcVert from "./cgl_shader_default_glsl.vert" ;
9
9
import { CglContext } from "./cgl_state.js" ;
10
+ import { Texture } from "./cgl_texture.js" ;
11
+ import { Uniform } from "./cgl_shader_uniform.js" ;
10
12
11
13
// ---------------------------------------------------------------------------
12
14
@@ -1227,8 +1229,6 @@ class CglShader extends CgShader
1227
1229
if ( ! CABLES . UI ) this . _log . log ( this ) ;
1228
1230
this . _isValid = false ;
1229
1231
1230
- // this._name = "errorshader";
1231
- // this.setSource(CglShader.getDefaultVertexShader(), CglShader.getErrorFragmentShader());
1232
1232
this . _cgl . printError ( "shader link err" ) ;
1233
1233
}
1234
1234
}
@@ -1341,9 +1341,9 @@ class CglShader extends CgShader
1341
1341
1342
1342
/**
1343
1343
* 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
1347
1347
* @function pushTexture
1348
1348
* @memberof Shader
1349
1349
* @instance
@@ -1479,7 +1479,7 @@ CglShader.createShader = function (cgl, str, type, cglShader)
1479
1479
1480
1480
if ( ! cglShader . error . infoLog )
1481
1481
{
1482
- this . _log . warn ( "empty shader info log" , this . _name ) ;
1482
+ cglShader . _log . warn ( "empty shader info log" , this . _name ) ;
1483
1483
return ;
1484
1484
}
1485
1485
0 commit comments