= {
export function Scene({ mode }: SceneProps) {
const preset = presets[mode];
const idPrefix = React.useId().replace(/:/g, '');
- const sceneId = `${idPrefix}-scene`;
- const sunHaloFilterId = `${idPrefix}-sun-halo-filter`;
- const moonFormFilterId = `${idPrefix}-moon-form-filter`;
- const moonSeaGlareFilterId = `${idPrefix}-moon-sea-glare-filter`;
const skyGradientId = `${idPrefix}-sky`;
const seaGradientId = `${idPrefix}-sea`;
- const hillFrontGradientId = `${idPrefix}-hill-front-grad`;
- const moonGradientId = `${idPrefix}-moon-grad`;
- const seaBeamGradientId = `${idPrefix}-sea-beam-grad`;
- const seaGlareGradientId = `${idPrefix}-sea-glare-grad`;
- const seaMaskId = `${idPrefix}-sea-mask`;
+ const hillFrontGradientId = `${idPrefix}-hill-front`;
+ const sunCoreGradientId = `${idPrefix}-sun-core`;
+ const moonGlowGradientId = `${idPrefix}-moon-glow`;
+ const moonGradientId = `${idPrefix}-moon`;
+ const seaGlareGradientId = `${idPrefix}-sea-glare`;
+ const showLargeBeam = mode === 'sunset' || mode === 'sunrise';
+ const showSmallBeam = mode === 'night';
return (
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
);
}
diff --git a/src/stories/components/AnimationDemo/Scene/assets/moon-glow.png b/src/stories/components/AnimationDemo/Scene/assets/moon-glow.png
new file mode 100644
index 0000000..1ef31a4
Binary files /dev/null and b/src/stories/components/AnimationDemo/Scene/assets/moon-glow.png differ
diff --git a/src/stories/components/AnimationDemo/Scene/assets/sea-beam-large.png b/src/stories/components/AnimationDemo/Scene/assets/sea-beam-large.png
new file mode 100644
index 0000000..322816c
Binary files /dev/null and b/src/stories/components/AnimationDemo/Scene/assets/sea-beam-large.png differ
diff --git a/src/stories/components/AnimationDemo/Scene/assets/sea-beam-small.png b/src/stories/components/AnimationDemo/Scene/assets/sea-beam-small.png
new file mode 100644
index 0000000..afb45ad
Binary files /dev/null and b/src/stories/components/AnimationDemo/Scene/assets/sea-beam-small.png differ
diff --git a/src/stories/components/AnimationDemo/Scene/assets/sun-glow.png b/src/stories/components/AnimationDemo/Scene/assets/sun-glow.png
new file mode 100644
index 0000000..8751fe6
Binary files /dev/null and b/src/stories/components/AnimationDemo/Scene/assets/sun-glow.png differ
diff --git a/src/types/assets.d.ts b/src/types/assets.d.ts
new file mode 100644
index 0000000..fc781e8
--- /dev/null
+++ b/src/types/assets.d.ts
@@ -0,0 +1,4 @@
+declare module '*.png' {
+ const src: string;
+ export default src;
+}