Friends link: exam 70-450 cert 9a0-125 Adobe 9A0-127 exam Apple 9l0-410 Certification a00-202 Exam dumps IBM a2010-570 Exam dumps Pass A2160-669 Exam asc-029 Exam Dumps BCP-240 Actual Exam ISEB bh0-006 exam
GLOW » Point, Lines, Triangles
Parajumpers sale Parajumpers sale canada goose sale Canada Goose jas

Point, Lines, Triangles

Sometimes you don’t want to draw triangles, but lines and points. Now GLOW has support for this as well as some other types.

As you know, this is the GLOW shader data object…

var shaderData = {
  vertexShader: "...the vertex shader code...",
  fragmentShader: "...the fragment shader code...",
  data: {
    viewMatrix: new GLOW.Matrix4(),
    vertices: myFloat32ArrayWithVertices,
    ...and all other uniforms and attributes...
  elements: myUint16ArrayWithElements

As of today the elements property can be switched to any of the following…

  • points
  • lines
  • lineLoop
  • lineStrip
  • triangles
  • triangleStrip
  • triangleFan

…which are the different element types that WebGL supports. Elements is the same as triangles, but we decided to keep it for now. If you’re into details, you can see that the GLOW.Elements have some new parameters – data, type and usage (more about usage in the next post).