flip lighitng and add metalness

This commit is contained in:
tresabhi committed 2026-08-10 16:58:40 -05:00
1 parent 7739dbd0a3
commit e2df4d35b8
2 files changed
+2 -2

No files matched your search

@@ -81,7 +81,7 @@ export function Lighting() {
const x = index / (LIGHTS_COUNT - 1); const x = index / (LIGHTS_COUNT - 1);
const theta = 2 * Math.PI * (index / LIGHTS_COUNT) + THETA_OFFSET; const theta = 2 * Math.PI * (index / LIGHTS_COUNT) + THETA_OFFSET;
const position = [ const position = [
LIGHT_DISTANCE * Math.sin(theta), -LIGHT_DISTANCE * Math.sin(theta),
lerp(LIGHT_HEIGHT_0, LIGHT_HEIGHT_1, x), lerp(LIGHT_HEIGHT_0, LIGHT_HEIGHT_1, x),
LIGHT_DISTANCE * Math.cos(theta), LIGHT_DISTANCE * Math.cos(theta),
] as const; ] as const;
@@ -37,7 +37,7 @@ export function SceneProps() {
ref={material} ref={material}
color="black" color="black"
roughness={1} roughness={1}
metalness={1} metalness={0}
/> />
</mesh> </mesh>
); );