feat(3d): transform website into 3d cinematic graphics with horizontal scroll and holographic comparison in light luxury theme
This commit is contained in:
@@ -71,38 +71,38 @@ export function Hero3DCanvas({ className = '' }: Hero3DCanvasProps) {
|
||||
// 1. Outer Translucent Diamond Crystal Prism (Octahedron)
|
||||
crystalGeo = new THREE.OctahedronGeometry(1.8, 0);
|
||||
crystalMat = new THREE.MeshPhysicalMaterial({
|
||||
color: 0x3b82f6, // Electric Blue
|
||||
roughness: 0.1,
|
||||
metalness: 0.1,
|
||||
transmission: 0.7,
|
||||
opacity: 0.65,
|
||||
color: 0x2563eb, // Studio Sapphire
|
||||
roughness: 0.08,
|
||||
metalness: 0.15,
|
||||
transmission: 0.85,
|
||||
opacity: 0.7,
|
||||
transparent: true,
|
||||
emissive: 0x1d4ed8,
|
||||
emissiveIntensity: 0.2,
|
||||
emissiveIntensity: 0.25,
|
||||
});
|
||||
const crystalMesh = new THREE.Mesh(crystalGeo, crystalMat);
|
||||
rootGroup.add(crystalMesh);
|
||||
|
||||
// Subtle Glowing Edge Highlights on Crystal
|
||||
// Subtle Champagne Glowing Edge Highlights on Crystal
|
||||
edgesGeo = new THREE.EdgesGeometry(crystalGeo);
|
||||
edgesMat = new THREE.LineBasicMaterial({
|
||||
color: 0x60a5fa,
|
||||
color: 0xc5a880, // Champagne Gold
|
||||
transparent: true,
|
||||
opacity: 0.8,
|
||||
opacity: 0.85,
|
||||
});
|
||||
const edgesLines = new THREE.LineSegments(edgesGeo, edgesMat);
|
||||
rootGroup.add(edgesLines);
|
||||
|
||||
// 2. Inner Nested Core Prism (Counter-rotating)
|
||||
// 2. Inner Nested Core Prism (Counter-rotating Gold Core)
|
||||
innerGeo = new THREE.OctahedronGeometry(1.0, 0);
|
||||
innerMat = new THREE.MeshPhysicalMaterial({
|
||||
color: 0x6366f1, // Indigo
|
||||
color: 0xd4af37, // Metallic Gold
|
||||
roughness: 0.2,
|
||||
metalness: 0.8,
|
||||
emissive: 0x4338ca,
|
||||
emissiveIntensity: 0.5,
|
||||
metalness: 0.85,
|
||||
emissive: 0xb45309,
|
||||
emissiveIntensity: 0.45,
|
||||
transparent: true,
|
||||
opacity: 0.8,
|
||||
opacity: 0.85,
|
||||
});
|
||||
const innerMesh = new THREE.Mesh(innerGeo, innerMat);
|
||||
rootGroup.add(innerMesh);
|
||||
@@ -112,10 +112,10 @@ export function Hero3DCanvas({ className = '' }: Hero3DCanvasProps) {
|
||||
dotGeo = new THREE.BufferGeometry();
|
||||
dotGeo.setAttribute('position', vertexPositions);
|
||||
dotMat = new THREE.PointsMaterial({
|
||||
color: 0x93c5fd,
|
||||
color: 0xfef3c7,
|
||||
size: 0.14,
|
||||
transparent: true,
|
||||
opacity: 0.9,
|
||||
opacity: 0.95,
|
||||
blending: THREE.AdditiveBlending,
|
||||
});
|
||||
const vertexPoints = new THREE.Points(dotGeo, dotMat);
|
||||
@@ -138,24 +138,24 @@ export function Hero3DCanvas({ className = '' }: Hero3DCanvasProps) {
|
||||
particlesGeo = new THREE.BufferGeometry();
|
||||
particlesGeo.setAttribute('position', new THREE.BufferAttribute(particlePositions, 3));
|
||||
particlesMat = new THREE.PointsMaterial({
|
||||
color: 0xa5b4fc,
|
||||
color: 0x93c5fd,
|
||||
size: 0.08,
|
||||
transparent: true,
|
||||
opacity: 0.7,
|
||||
opacity: 0.75,
|
||||
blending: THREE.AdditiveBlending,
|
||||
});
|
||||
const particlesMesh = new THREE.Points(particlesGeo, particlesMat);
|
||||
rootGroup.add(particlesMesh);
|
||||
|
||||
// Lights
|
||||
const ambientLight = new THREE.AmbientLight(0xffffff, 0.9);
|
||||
// Lights: Ambient + Sapphire Key + Champagne Fill
|
||||
const ambientLight = new THREE.AmbientLight(0xffffff, 1.1);
|
||||
scene.add(ambientLight);
|
||||
|
||||
const keyLight = new THREE.PointLight(0x38bdf8, 3, 10);
|
||||
const keyLight = new THREE.PointLight(0x38bdf8, 3.2, 10);
|
||||
keyLight.position.set(3, 3, 3);
|
||||
scene.add(keyLight);
|
||||
|
||||
const fillLight = new THREE.PointLight(0xa855f7, 2, 10);
|
||||
const fillLight = new THREE.PointLight(0xc5a880, 2.8, 10);
|
||||
fillLight.position.set(-3, -2, 2);
|
||||
scene.add(fillLight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user