GitHub
Translate

Opens Google Translate in a new tab. Website translation availability varies by region. Details

WebGL2 Shader • 3D Raymarched SDF

Prism 3D

Renders a smooth-blended 3D sculpture (prism, torus, or orb) with orbiting satellites, 3-point studio lighting, ambient occlusion, and Fresnel glow mixed cleanly using Additive Color Blending (ACD).

Live Playground

3D Raymarched SDF Move to Orbit • Hold to Zoom
Shape
Depth 1.05
Gloss 1.20
Distortion 0.35

Where to Use It

AI Engine & 3D Product Heroes

Replace heavy 2 MB GLB/Three.js bundles with a lightweight raymarched 3D prism, torus, or orb sculpture in one shader pass.

Interactive Tech & Cloud Roadmaps

Hot-swap shape between 'prism', 'torus', and 'orb' as visitors scroll or toggle platform tabs.

Usage (Copy & Paste)

<section
  data-fx="prism-3d"
  data-fx-shape="prism"
  data-fx-depth="1.05"
  data-fx-gloss="1.2"
  data-fx-distortion="0.35"
  data-fx-quality="high"
  style="min-height: 60vh;"
>
  <div style="position: relative; z-index: 1;">3D Hero</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script>
'use client';
import { Prism3D } from '@votax572002/fluxfx/react';

export function PrismHero() {
  return (
    <Prism3D shape="torus" depth={1.1} gloss={1.2} distortion={0.35} quality="high" style={{ minHeight: '60vh' }}>
      <h1>3D Sculpture</h1>
    </Prism3D>
  );
}
import { FluxFX } from '@votax572002/fluxfx';

FluxFX.apply(el, 'prism-3d', {
  shape: 'prism', // 'prism' | 'torus' | 'orb'
  depth: 1.05,
  gloss: 1.2,
  distortion: 0.35,
  quality: 'high',
});

How It Works (Flowchart)

3D Camera Ray uMouse orbit + depth SDF Raymarching 32 / 48 / 72 steps + smin Normals & AO Tetrahedron normal + AO Studio Lighting 3-point + Fresnel aura

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-shapeshape'prism' | 'torus' | 'orb''prism'3D SDF sculpture geometry preset.
data-fx-depthdepthnumber1.0Camera zoom / 3D scale (0.45–2.2).
data-fx-glossglossnumber1.0Specular & iridescent highlight strength.
data-fx-distortiondistortionnumber0.353D twist and surface displacement.
data-fx-qualityquality'low' | 'medium' | 'high''medium'Raymarch steps (32 / 48 / 72) & AO taps (2 / 3 / 4).