How to use the luma.gl.Geometry function in luma

To help you get started, we’ve selected a few luma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uber / deck.gl / src / layers / samples / enhanced-hexagon-layer / enhanced-hexagon-layer.js View on Github external
getModel(gl) {
    return new Model({
      gl,
      id: this.props.id,
      ...assembleShaders(gl, {
        vs: VERTEX_SHADER,
        fs: FRAGMENT_SHADER
      }),
      geometry: new Geometry({
        drawMode: GL.TRIANGLE_FAN,
        positions: this.getPositions()
      }),
      isInstanced: true
    });
  }
github uber / deck.gl / src / deprecated-layers / choropleth-layer / choropleth-layer.js View on Github external
getModel(gl) {
    return new Model(gl, Object.assign({}, this.getShaders(), {
      id: this.props.id,
      geometry: new Geometry({
        drawMode: this.props.drawContour ? GL.LINES : GL.TRIANGLES
      }),
      vertexCount: 0,
      isIndexed: true,
      shaderCache: this.context.shaderCache
    }));
  }
github uber / deck.gl / modules / experimental-layers / src / gpu-screen-grid-layer / gpu-screen-grid-layer.js View on Github external
_getModel(gl) {
    return new Model(
      gl,
      Object.assign({}, this.getShaders(), {
        id: this.props.id,
        geometry: new Geometry({
          drawMode: GL.TRIANGLE_FAN,
          attributes: {
            vertices: new Float32Array([0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0])
          }
        }),
        isInstanced: true,
        shaderCache: this.context.shaderCache
      })
    );
  }
github uber / deck.gl / src / layers / samples / point-cloud-layer / point-cloud-layer.js View on Github external
getModel(gl) {
    return new Model({
      gl,
      id: this.props.id,
      ...assembleShaders(gl, {
        vs: VERTEX_SHADER,
        fs: FRAGMENT_SHADER
      }),
      geometry: new Geometry({drawMode: GL.POINTS})
    });
  }
github uber / deck.gl / src / layers / core / reflection-layer / reflection-layer.js View on Github external
getModel(gl) {
    return new Model({
      gl,
      id: this.props.id,
      ...assembleShaders(gl, {
        vs: glslify('./reflection-layer-vertex.glsl'),
        fs: glslify('./reflection-layer-fragment.glsl')
      }),
      geometry: new Geometry({
        drawMode: this.props.drawContour ? GL.LINES : GL.TRIANGLES
      }),
      vertexCount: 0,
      isIndexed: true
    });
  }

luma

A library for creating unified, beautiful shadows.

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis