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.

12 lines (11 loc) 258 B
/** * Ambient light component * @param {import("../types.js").AmbientLightComponentOptions} [options] * @returns {object} * @alias module:components.ambientLight */ export default (options) => ({ color: [1, 1, 1, 1], intensity: 1, ...options, });