Skip to content

webgl-state-diagram #331

Open
Open
@letochagone

Description

@letochagone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions