The lightControls object defines the schema for controlling lighting parameters. It supports fine-grained adjustments for intensity, presets, and environmental lighting.
Available Properties
- intensity: A numeric slider control.
value: The current intensity.min: Minimum value (0).max: Maximum value (2).step: Increment size (0.1).label: Display name ('light intensity').
- preset: A selection control for lighting styles.
value: The current preset (defaults to 'rembrandt').options: ['rembrandt', 'portrait', 'upfront', 'soft']
- environment: A selection control for the environment map.
value: The current environment (defaults to 'city').options: ['', 'sunset', 'dawn', 'night', 'warehouse', 'forest', 'apartment', 'studio', 'city', 'park', 'lobby']
export const lightControls = {
intensity: {
value: 0.1,
min: 0,
max: 2,
step: 0.1,
label: 'light intensity',
},
preset: {
value: 'rembrandt',
options: ['rembrandt', 'portrait', 'upfront', 'soft'],
},
environment: {
value: 'city',
options: [
'',
'sunset',
'dawn',
'night',
'warehouse',
'forest',
'apartment',
'studio',
'city',
'park',
'lobby',
],
},
}