1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00

Update README.md

This commit is contained in:
Kevin LEVRON 2020-09-14 17:10:01 +02:00 committed by GitHub
parent b177aa4341
commit 4fe7ab3940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,14 @@ I wanted to try to write a lib similar to [react-three-fiber](https://github.com
I first made a simple *Proof of Concept*, take a look at [Test.vue](/src/components/Test.vue) :
```html
<Renderer ref="renderer">
<Renderer>
<PerspectiveCamera :position="{ z: 100 }"></PerspectiveCamera>
<PhongMaterial name="material1" color="#ff0000"></PhongMaterial>
<LambertMaterial name="material2" color="#0000ff"></LambertMaterial>
<Scene>
<PointLight :position="{ x: 0, y: 50, z: 50 }"></PointLight>
<PointLight :position="{ y: 50, z: 50 }"></PointLight>
<Box ref="box" :size="10" material="material1"></Box>
<Sphere ref="sphere" :radius="10" :position="{ x: 50 }" material="material2"></Sphere>
</Scene>