Skip to content

Commit

Permalink
Consolidate selection systems / refactor helpers
Browse files Browse the repository at this point in the history
adeira-source-id: 097f1489aa15c254e6eb6682d1ce5adcb236c462
  • Loading branch information
itsdouges authored and triplex-bot committed Nov 26, 2024
1 parent 8d2077e commit d384ef0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-dolls-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@triplex/renderer-r3f": patch
---

The selection outline post processing effect no longer unintentionally turns on all layers for the camera now, instead only turning on what was initially turned on.
5 changes: 5 additions & 0 deletions .changeset/shy-waves-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@triplex/renderer-r3f": patch
---

Selecting helper objects such as cameras and lights now participate in the mesh based selection system enabling selection cylcing and selection outlines.
13 changes: 13 additions & 0 deletions examples/test-fixture/src/lights.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Copyright (c) Michael Dougall. All rights reserved.
*
* This source code is licensed under the GPL-3.0 license found in the LICENSE
* file in the root directory of this source tree.
*/
export function PointLight() {
return (
<>
<pointLight scale={[3.3, 3.3, 3.3]} />
</>
);
}

0 comments on commit d384ef0

Please sign in to comment.