feat: add PostFX component and webgl PostFxPasses for enhanced visual effects
- Introduced PostFX component for managing post-processing effects including LensFlarePass and FluidPushPass. - Implemented LensFlarePass for star streak effects on bright pixels with customizable parameters. - Developed FluidPushPass for GPU fluid simulation, allowing pointer-driven splats and visual refractive effects. - Added utility functions for motion reduction detection and viewport section visibility checks. - Established a comprehensive rendering pipeline with dynamic adjustments based on device metrics and user interactions.
This commit is contained in:
@@ -8,6 +8,7 @@ import { HelloModel, CursorStar } from "@/components/canvas/GlassModels";
|
||||
import ImageLayers from "@/components/canvas/ImageLayers";
|
||||
import BackgroundFX from "@/components/canvas/BackgroundFX";
|
||||
import DotOverlay from "@/components/canvas/DotOverlay";
|
||||
import PostFX from "@/components/canvas/PostFX";
|
||||
import { useAppReady } from "@/components/dom/LoadingOverlay";
|
||||
import { useIsMobile } from "@/lib/useIsMobile";
|
||||
|
||||
@@ -61,6 +62,10 @@ export function HeroScene() {
|
||||
{/* Glass hero models (hello + blue cursor star), refractive tint shader */}
|
||||
<HelloModel isMobile={isMobile} />
|
||||
<CursorStar isMobile={isMobile} />
|
||||
|
||||
{/* Post FX (original cG): lens-flare star streaks + pointer-driven
|
||||
fluid refraction + lime dot-trail indicator. */}
|
||||
<PostFX />
|
||||
</Canvas>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user