UNPKG

pex-renderer

Version:

Physically Based Renderer (PBR) and scene graph designed as ECS for PEX: define entities to be rendered as collections of components with their update orchestrated by systems.

13 lines (12 loc) 277 B
/** * Vertex helper component * @param {import("../types.js").VertexHelperComponentOptions} [options] * @returns {object} * @alias module:components.vertexHelper */ export default (options) => ({ color: [0, 1, 0, 1], size: 1, attribute: "normals", ...options, });