🚀 Auto-deploy: BrainWind atualizado em 28/07/2026 11:42:11
This commit is contained in:
@@ -99,11 +99,11 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
|
||||
const isAirtight = permeabilityCase !== 'four-equally-permeable';
|
||||
if (isAirtight) {
|
||||
if (windAngle === 0 && px < -halfW + margin) {
|
||||
deflectY = 0.1; // Sobe
|
||||
deflectZ = pz > 0 ? 0.05 : -0.05; // Vai pros lados
|
||||
deflectY = p.baseSpeed * 1.5; // Sobe
|
||||
deflectZ = pz > 0 ? p.baseSpeed * 1.5 : -p.baseSpeed * 1.5; // Vai pros lados
|
||||
} else if (windAngle === 90 && pz < -halfL + margin) {
|
||||
deflectY = 0.1; // Sobe
|
||||
deflectX = px > 0 ? 0.05 : -0.05; // Vai pros lados
|
||||
deflectY = p.baseSpeed * 1.5; // Sobe
|
||||
deflectX = px > 0 ? p.baseSpeed * 1.5 : -p.baseSpeed * 1.5; // Vai pros lados
|
||||
}
|
||||
}
|
||||
} else if (aboveRoof) {
|
||||
@@ -165,10 +165,10 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
|
||||
} else if (p.currentCpe < 0) {
|
||||
// Sucção (Frio: Azul claro -> Azul escuro)
|
||||
const intensity = Math.min(1, Math.abs(p.currentCpe));
|
||||
colorObj.set('#38bdf8').lerp(new THREE.Color('#1e3a8a'), intensity);
|
||||
colorObj.set('#7dd3fc').lerp(new THREE.Color('#1e40af'), intensity);
|
||||
} else {
|
||||
// Neutro
|
||||
colorObj.set('#cbd5e1');
|
||||
colorObj.set('#f1f5f9');
|
||||
}
|
||||
meshRef.current!.setColorAt(i, colorObj);
|
||||
});
|
||||
@@ -181,11 +181,11 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
|
||||
|
||||
return (
|
||||
<instancedMesh ref={meshRef} args={[undefined, undefined, count]}>
|
||||
<cylinderGeometry args={[0.04, 0.04, 1.5, 4]} />
|
||||
<cylinderGeometry args={[0.015, 0.015, 1.5, 4]} />
|
||||
<meshBasicMaterial
|
||||
color="#ffffff"
|
||||
transparent
|
||||
opacity={0.8}
|
||||
opacity={0.5}
|
||||
blending={THREE.AdditiveBlending}
|
||||
depthWrite={false}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user