Spaces:
Running
Running
File size: 471 Bytes
6ce4ca6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<script lang="ts">
import { T } from "@threlte/core";
import { PlaneGeometry } from 'three';
import { Grid } from '@threlte/extras'
const floorGeometry = new PlaneGeometry(20, 20);
</script>
<T.Mesh
receiveShadow
position.y={0}
rotation.x={-Math.PI / 2}
frustumCulled={false}
>
<T is={floorGeometry} />
<T.ShadowMaterial
opacity={0.3}
transparent={true}
polygonOffset={true}
polygonOffsetFactor={1}
polygonOffsetUnits={1}
/>
</T.Mesh>
<Grid/>
|