import React from 'react' import { useTranslation } from 'react-i18next' import { Entity } from '@xrengine/engine/src/ecs/classes/Entity' import { Component, useComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions' import BooleanInput from '../inputs/BooleanInput' import InputGroup from '../inputs/InputGroup' import NumericInputGroup from '../inputs/NumericInputGroup' import SelectInput from '../inputs/SelectInput' import { updateProperties, updateProperty } from './Util' /** * Array containing options for shadow resolution */ const ShadowMapResolutionOptions = [ { label: '256px', value: 256 }, { label: '512px', value: 512 }, { label: '1024px', value: 1024 }, { label: '2048px', value: 2048 }, { label: '4096px (not recommended)', value: 4096 } ] //creating properties for LightShadowProperties component type LightShadowPropertiesProps = { entity: Entity comp: Component } /** * OnChangeShadowMapResolution used to customize properties of LightShadowProperties * Used with LightNodeEditors. * * @type {[class component]} */ export const LightShadowProperties = (props: LightShadowPropertiesProps) => { const { t } = useTranslation() const changeShadowMapResolution = (resolution) => { updateProperties(props.comp, { shadowMapResolution: resolution }) } const lightComponent = useComponent(props.entity, props.comp).value as any return ( <> ) } export default LightShadowProperties