5.4.0

Lightformer

Addon for environment component that provided you custom lights.

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>

Props

Lightformer inherits from mesh, and its extension parameters include:

PropDescriptionDefault
fromcircle, ring, rect, or any other Mesh typerect
intensityThe intensity of the light1
colorThe color of the light0xffffff
argsThe arguments of the GeometryWhen using other geometries, set the corresponding arguments