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.

21 lines (20 loc) 394 B
/** * Skybox component * @param {import("../types.js").SkyboxComponentOptions} [options] * @returns {object} * @alias module:components.skybox */ export default (options) => ({ // Shared backgroundBlur: false, exposure: 1, // Sky turbidity: 10, rayleigh: 2, mieCoefficient: 0.005, mieDirectionalG: 0.8, // sunPosition, // Environment map // envMap, ...options, });