mirror of
https://github.com/BradNut/svelte-3d
synced 2025-09-08 17:40:17 +00:00
Adding point light on star and adding a gridheler to imagine 3D space.
This commit is contained in:
parent
3dbb35264e
commit
3f62fac669
1 changed files with 13 additions and 1 deletions
|
|
@ -20,10 +20,22 @@
|
||||||
metalness: 0.7,
|
metalness: 0.7,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
<SC.Group position={[ 0, -2, 0 ]}>
|
||||||
|
<SC.Mesh
|
||||||
|
geometry={new THREE.PlaneGeometry(100,100)}
|
||||||
|
material={new THREE.MeshStandardMaterial({ color: 'grey' })}
|
||||||
|
rotation={[-Math.PI / 2, 0, 0]}
|
||||||
|
/>
|
||||||
|
<SC.Primitive
|
||||||
|
position={[ 0, 0.001, 0]}
|
||||||
|
object={new THREE.GridHelper(100, 100, 0x444444, 0x555555)}
|
||||||
|
/>
|
||||||
|
</SC.Group>
|
||||||
<SC.PerspectiveCamera position={[3, 3, 3]} />
|
<SC.PerspectiveCamera position={[3, 3, 3]} />
|
||||||
<SC.OrbitControls />
|
<SC.OrbitControls />
|
||||||
<SC.AmbientLight intensity={1} />
|
<SC.AmbientLight intensity={1} />
|
||||||
<SC.DirectionalLight intensity={0.5} position={[-3, 5, 7]} />
|
<SC.DirectionalLight intensity={0.7} />
|
||||||
|
<SC.PointLight intensity={1} position={[2, 5, 2]} />
|
||||||
</SC.Canvas>
|
</SC.Canvas>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue