@galacean/engine-toolkit-custom-material
v1.3.9
Published
The `Custom Material` toolkit provides a variety of special materials, such as infinite grids and planar shadows, etc. However, the material of this warehouse will either rely on the control of the `Script`, or use the `multi shader pass` to provide a fac
Downloads
551
Maintainers
Keywords
Readme
Custom Material
The Custom Material
toolkit provides a variety of special materials, such as infinite grids and planar shadows, etc.
However, the material of this warehouse will either rely on the control of the Script
, or use the multi shader pass
to provide a factory class, or rely on special Mesh data. So each material is used in a different way.
Due to the particularity of various materials, a README document is provided under each material folder. For the principle and usage of each material, please refer to the README document under each folder.
Features
- 🔲 Plain Color Material - Plain color material
- ⚔️ Grid Material - Infinity grid material
- 🗳 Planar Shadow Material - Two-pass shadow on the planar
- 🍞 Bake PBR Material - Bake texture with ibl lighting
npm
The Custom Material
is published on npm with full typing support. To install, use:
npm install @galacean/engine-toolkit-custom-material
This will allow you to import package entirely using:
import * as TOOLKIT from "@galacean/engine-toolkit-custom-material";
or individual classes using:
import { PlanarShadowShaderFactory } from "@galacean/engine-toolkit-custom-material";
Links
License
The engine is released under the MIT license. See LICENSE file.