Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inverted-stencil-buffer demo #42

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions demos/inverted-stencil-buffer/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import reactModel from './react-transformed.glb?url'
export function App() {
const { invert } = useControls({ invert: false })
return (
<Canvas shadows>
<directionalLight position={[1, 2, 1.5]} intensity={0.5} castShadow />
<hemisphereLight intensity={1.5} groundColor="red" />
<Canvas shadows gl={{ stencil: true }}>
<directionalLight position={[1, 2, 1.5]} intensity={0.5 * Math.PI} castShadow />
<hemisphereLight intensity={1.5 * Math.PI} groundColor="red" />
<Suspense fallback={null}>
<CircularMask />
<CircularMask position={[2, 0, 0]} />
Expand Down