mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
migrate guesser
This commit is contained in:
33 files changed
+802
-635
No files matched your search
@@ -8,7 +8,11 @@ const SIZE = 2 ** 4;
|
||||
|
||||
export const screenshotReadyEvent = new Quicklime(false);
|
||||
|
||||
export function SceneProps() {
|
||||
interface SceneProps {
|
||||
color?: string;
|
||||
}
|
||||
|
||||
export function SceneProps({ color = mauveDark.mauve6 }: SceneProps) {
|
||||
const mesh = useRef<Mesh>(null!);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -79,7 +83,7 @@ export function SceneProps() {
|
||||
>
|
||||
<planeGeometry args={[SIZE, SIZE]} />
|
||||
<meshStandardMaterial
|
||||
color={mauveDark.mauve6}
|
||||
color={color}
|
||||
roughness={1}
|
||||
onBeforeCompile={handleBeforeCompile}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user