@masatomakino/threejs-shader-materials
    Preparing search index...

    @masatomakino/threejs-shader-materials

    threejs-shader-materials

    Collection of shader materials for three.js

    ReadMe Card

     Demo Page

    Demo page

    npm install @masatomakino/threejs-shader-materials --save-dev
    

    threejs-shader-materials is composed of ES6 modules and TypeScript d.ts files.

    At first, import classes,

    import { HexGridMaterial } from "threejs-shader-materials";
    

    and set material.

    const geo = new SphereGeometry(10, 64, 64);
    const mat = new HexGridMaterial();
    const mesh = new Mesh(geo, mat);
    scene.add(mesh);

    API documents

    MIT licensed.