@react-three/csg
Advanced tools
Comparing version 0.0.2 to 0.1.0
{ | ||
"name": "@react-three/csg", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "non gratum anus rodentum", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -0,1 +1,6 @@ | ||
<p> | ||
<a href="https://codesandbox.io/s/eckvc1"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/eckvc1/screenshot.png" alt="Demo"/></a> | ||
<a href="https://codesandbox.io/s/mw0dtc"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/mw0dtc/screenshot.png" alt="Demo"/></a> | ||
</p> | ||
```shell | ||
@@ -7,7 +12,2 @@ yarn add @react-three/csg | ||
<p> | ||
<a href="https://codesandbox.io/s/eckvc1"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/eckvc1/screenshot.png" alt="Demo"/></a> | ||
<a href="https://codesandbox.io/s/mw0dtc"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/mw0dtc/screenshot.png" alt="Demo"/></a> | ||
</p> | ||
You have 4 operations: | ||
@@ -32,3 +32,3 @@ | ||
<Brush a scale={1.5} position={[0, -1.04, 0]} geometry={nodes.bunny.geometry} /> | ||
<Brush b ref={mesh} position={[0.5, -0.75, 1]}> | ||
<Brush b position={[0.5, -0.75, 1]}> | ||
<sphereGeometry /> | ||
@@ -58,9 +58,9 @@ </Brush> | ||
return ( | ||
<Subtraction castShadow receiveShadow> | ||
<Brush a rotation={[0, Math.PI / 2, 0]} position={[-0.35, 0.4, 0.4]}> | ||
<boxGeometry /> | ||
</Brush> | ||
<Brush b ref={brush} position={[-0.35, 0.4, 0.4]}> | ||
<boxGeometry /> | ||
</Brush> | ||
``` | ||
<Subtraction castShadow receiveShadow> | ||
<Brush a rotation={[0, Math.PI / 2, 0]} position={[-0.35, 0.4, 0.4]}> | ||
<boxGeometry /> | ||
</Brush> | ||
<Brush b ref={brush} position={[-0.35, 0.4, 0.4]}> | ||
<boxGeometry /> | ||
</Brush> | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
214767
5922
64