GitHub
Translate

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

WebGL2 Shader • Studio Cyclorama

Spotlight

Renders a volumetric studio spotlight halo with Additive Color Blending (ACD), subtle cyclorama floor shadow, and anti-banding dither grain that tracks your cursor smoothly.

Live Playground

Studio Backdrop Move Cursor to Shift Light
Spot Radius 0.65
Intensity 1.10
Position
Mood Palette

Where to Use It

Lookbooks & Character Stages

Pair behind depth-carousel so the studio light shifts smoothly as visitors browse characters or outfits.

Product Launches

Shift spotPosition to 'left' when opening a right-hand spec panel or checkout drawer.

Usage (Copy & Paste)

<section
  data-fx="spotlight"
  data-fx-colors="#121316, #3f4652, #f8fafc"
  data-fx-spot-radius="0.65"
  data-fx-spot-intensity="1.1"
  data-fx-spot-position="center"
  style="min-height: 70vh;"
>
  <div style="position: relative; z-index: 1;">Studio Lookbook</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script>
'use client';
import { Spotlight } from '@votax572002/fluxfx/react';

export function StudioStage() {
  return (
    <Spotlight
      colors={['#121316', '#3f4652', '#f8fafc']}
      spotRadius={0.65}
      spotIntensity={1.1}
      spotPosition="center"
      style={{ minHeight: '70vh' }}
    >
      <h1>Studio Showcase</h1>
    </Spotlight>
  );
}
import { FluxFX } from '@votax572002/fluxfx';

FluxFX.apply(el, 'spotlight', {
  colors: ['#121316', '#3f4652', '#f8fafc'],
  spotRadius: 0.65,
  spotIntensity: 1.1,
  spotPosition: 'center', // 'center' | 'left' | 'right' | [x, y]
});

How It Works (Flowchart)

Spot Origin uSpotPosition + uMouse Core + Wide Halo Dual Gaussian falloff Cyclorama Floor Floor shadow + vignette Dithered Output Anti-banding grain

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-colorscolorsstring | string[]['#14161a','#4b5563','#f8fafc'][baseTint, midWash, coreHalo] studio colors.
data-fx-bg-colorbgColorstringAuto themeExplicit solid backdrop color or 'transparent'.
data-fx-spot-radiusspotRadiusnumber0.62Spotlight glow radius (0.18–1.45).
data-fx-spot-intensityspotIntensitynumber1.0Spotlight brightness multiplier (0.0–2.5).
data-fx-spot-positionspotPosition'center' | 'left' | 'right' | [x, y]'center'Center origin of the studio spotlight.