-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webgl-state-diagram #331
Comments
The state diagram is not designed as a debugging tool. It is only designed to show the things that appear in the samples. The samples do not use |
i did add a code for my understanding : `const posLoc1 = gl.getAttribLocation(program1Attrib, 'position'); const sizeLoc = gl.getAttribLocation(program1Attrib, 'size'); const size3Loc = gl.getAttribLocation(program1Attrib, 'size3'); attributesenabled | value | size | ... | bufferfalse | 0.5 , 0.5 ,0 , 1 | 4 | ... | null the window whose name is program[program4constantAttributes]
|
The reason it sometime works is the code queries all the attribute data so if you do this
See here It's not a bug, the code only implements what's needed for the examples. If you want to fix it you can add code for all the |
i download webgl-state-diagram.html and add some samples . So i added a sample with a vertexAttrib4fv.
And i watch step by step, but the step gl.vertexAttrib4fv(posLoc1,[0.5,0.5,0.,1.]); does not appear in the vertex Array window.
if i put that code ( two stable attribute) :
const posLoc1 = gl.getAttribLocation(program1Attrib, 'position1);
gl.disableVertexAttribArray(posLoc1);
gl.vertexAttrib4fv(posLoc1,[0.3,0.2,0.,1.]);
const posLoc2 = gl.getAttribLocation(program1Attrib, 'position2');
gl.disableVertexAttribArray(posLoc2);
gl.vertexAttrib4fv(posLoc2,[0.5,0.5,0.,1.]);
And i watch step by step, in the vertex Array window, there is only posLoc1
The text was updated successfully, but these errors were encountered: