mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 03:59:53 +01:00
feat: softer colros
This commit is contained in:
1 parent
0f45476a8b
commit
c8be2257ef
1 file changed
+3
-3
@@ -105,7 +105,7 @@ export function StaticArmorSceneComponent({
|
|||||||
new LineBasicMaterial({
|
new LineBasicMaterial({
|
||||||
color: color
|
color: color
|
||||||
.clone()
|
.clone()
|
||||||
.multiplyScalar(props.type === ArmorType.Spaced ? 2 ** 2 : 2 ** -2),
|
.multiplyScalar(props.type === ArmorType.Spaced ? 2 ** 2 : 2 ** -1),
|
||||||
}),
|
}),
|
||||||
[thickness],
|
[thickness],
|
||||||
);
|
);
|
||||||
@@ -189,7 +189,7 @@ export function StaticArmorSceneComponent({
|
|||||||
.applyQuaternion(event.object.getWorldQuaternion(new Quaternion()));
|
.applyQuaternion(event.object.getWorldQuaternion(new Quaternion()));
|
||||||
const angle = surfaceNormal.angleTo(cameraNormal);
|
const angle = surfaceNormal.angleTo(cameraNormal);
|
||||||
const thicknessAngled = thickness / Math.sin(Math.PI / 2 - angle);
|
const thicknessAngled = thickness / Math.sin(Math.PI / 2 - angle);
|
||||||
console.log(name);
|
|
||||||
mutateTankopediaEphemeralStore((draft) => {
|
mutateTankopediaEphemeralStore((draft) => {
|
||||||
draft.highlightArmor = {
|
draft.highlightArmor = {
|
||||||
type: props.type,
|
type: props.type,
|
||||||
@@ -207,7 +207,7 @@ export function StaticArmorSceneComponent({
|
|||||||
|
|
||||||
{node instanceof Mesh && (
|
{node instanceof Mesh && (
|
||||||
<lineSegments material={outlineMaterial}>
|
<lineSegments material={outlineMaterial}>
|
||||||
<edgesGeometry args={[node.geometry, 90 / 6]} />
|
<edgesGeometry args={[node.geometry, 45]} />
|
||||||
</lineSegments>
|
</lineSegments>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in new issue
Block a user