How do I solve this error?
Argument 1 in this case is [object WebGLRenderingContext]
well i know nuthin about this framework, but i just took a look at the online doco for the function compileShader.
the error message seems quite clear, compileShader takes one argument. that one argument must implement the WbGlShader interface and whatever you're trying to pass in doesnt.
therefore prove this to yourself, pass in something else which you know does.
the page i'm looking at has this example...
var shader = gl.createShader(gl.VERTEX_SHADER);
gl.shaderSource(shader, shaderSource);
gl.compileShader(shader);
does that help?
>>55199968
Not sure if it helps, but it definitely confuses me because I thought compileShader took three arguments.
>>55200376
>adding to the confusion
>helping
>>55200426
>everyone on 4chan owes me
https://www.youtube.com/watch?v=ppNZoEOr0zs&list=WL&index=9
you're welcome.