UNPKG
r3f-template
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
CLI to scaffold React Three Fiber templates with or without physics( Rapier )
r3f-template
/
templates
/
js
/
basic
/
src
/
Components
/
Lights.jsx
13 lines
(11 loc)
•
238 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
Environment
}
from
'@react-three/drei'
const
Lights
= (
) => {
return
(
<>
<
ambientLight
/>
<
pointLight
position
=
{[10,
10
,
10
]} />
<
Environment
preset
=
"sunset"
/>
</>
) }
export
default
Lights