made lighting a bit better

This commit is contained in:
ad044 2020-10-03 00:18:22 +04:00
parent 3547bd8e14
commit e7c005dcc8
2 changed files with 5 additions and 5 deletions

View file

@ -18,11 +18,11 @@ const Lights = memo(() => {
position-y={lightState.lightPosY} position-y={lightState.lightPosY}
rotation-y={lightState.lightRotY} rotation-y={lightState.lightRotY}
> >
<ambientLight color={0x808080} intensity={0.6} /> <pointLight color={0xffffff} position={[0, 0, 7]} intensity={1} />
<pointLight color={0xffffff} position={[0, 0, 7]} intensity={0.7} />
<pointLight color={0x7f7f7f} position={[0, 10, 0]} intensity={1.5} /> <pointLight color={0x7f7f7f} position={[0, 10, 0]} intensity={1.5} />
<pointLight color={0xffffff} position={[-8, 0, 0]} intensity={0.3} /> <pointLight color={0xffffff} position={[8, 0, 0]} intensity={0.2} />
<pointLight color={0xffffff} position={[8, 0, 0]} intensity={0.3} /> <pointLight color={0xffffff} position={[-8, 0, 0]} intensity={0.2} />
</a.group> </a.group>
); );
}); });

View file

@ -135,7 +135,7 @@ const PurpleRing = memo((props: PurpleRingProps) => {
addedLights.rgb += clamp(dot(-lightDirection, addedLights.rgb += clamp(dot(-lightDirection,
vNormal), 0.0, 1.0) vNormal), 0.0, 1.0)
* pointLights[l].color * pointLights[l].color
* 50.0; * 30.0;
} }
// number of segments // number of segments