petitatelier / three-web-components

A collection of Web Components to compose Three.js apps
BSD 3-Clause "New" or "Revised" License
44 stars 5 forks source link

Create ‹three-camera› element #3

Open olange opened 5 years ago

olange commented 5 years ago

Features

Sample code

<three-app fps="10">
  <three-camera id="camera01" type="perspective" helper="true"></three-camera>
</three-app>

<three-app fps="10" camera="camera01">
  <three-camera id="camera01" type="perspective" helper="true"></three-camera>
  <three-camera id="camera02" type="perspective" helper="true"></three-camera>
</three-app>

Blocks