You can incorporate Lightformer into the environment just like a slot.
<script setup>
import { Enviroment, LightFormer } from '@tres/cientos'
</script>
<template>
<Environment>
<Lightformer :intensity="0.75" :position="[0, 5, -9]" />
<Lightformer from="ring" :rotation-y="-Math.PI / 2" :scale="[10, 10, 1]" />
</Environment>
</template>
Lightformer inherits from mesh, and its extension parameters include:
| Prop | Description | Default |
|---|---|---|
from | circle, ring, rect, or any other Mesh type | rect |
intensity | The intensity of the light | 1 |
color | The color of the light | 0xffffff |
args | The arguments of the Geometry | When using other geometries, set the corresponding arguments |