Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
add: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 10, 2024
1 parent 5510752 commit 2e2f5fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/yatai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Canvas, type ThreeElements, useThree } from "@react-three/fiber";
import styles from "./index.module.css";

function Yatai() {
// 土台
const Foundation = (props: ThreeElements["mesh"]) => {
return (
<mesh {...props} castShadow receiveShadow>
Expand All @@ -11,6 +12,7 @@ function Yatai() {
);
};

// 的
const Target = (props: ThreeElements["mesh"]) => {
return (
<mesh {...props} castShadow receiveShadow>
Expand All @@ -30,7 +32,9 @@ function Yatai() {
return (
<div className={styles.canvas}>
<Canvas shadows camera={{ fov: 25 }}>
{/* 全体ライト */}
<ambientLight intensity={Math.PI / 16} />
{/* スポットライト */}
<spotLight
castShadow
position={[4, 12, 8]}
Expand Down

0 comments on commit 2e2f5fe

Please sign in to comment.