exchange tast to tactilea

This commit is contained in:
lennlouisgeek
2026-04-03 00:47:36 +08:00
parent a686d19e61
commit 7688986ad7
15 changed files with 1842 additions and 147 deletions

View File

@@ -49,8 +49,8 @@
const MAX_LABEL_SCALE = 2.45;
const MATRIX_OFFSET_Y = -2.4;
const MATRIX_OFFSET_Z = 12;
const HEIGHT_SCALE = 18.5;
const BASE_HEIGHT = 0.18;
const HEIGHT_SCALE = 10.6;
const BASE_HEIGHT = 0.12;
const GLOW_START = 0.3;
const SMOOTHING_SPEED = 8.2;
const CAMERA_FOV = 36;
@@ -152,7 +152,7 @@
}
function shapeHeightValue(valueNormalized: number): number {
return Math.pow(clamp(valueNormalized, 0, 1), 0.74);
return Math.pow(clamp(valueNormalized, 0, 1), 0.9);
}
function shapeGlowStrength(valueNormalized: number): number {
@@ -170,7 +170,7 @@
const gridSpan = Math.max(boardWidth, boardDepth) + boardPadding * 2;
const gridDivisions = Math.round(clamp(longestEdge * 1.6, MIN_GRID_DIVISIONS, MAX_GRID_DIVISIONS));
const labelScale = clamp(24 / (longestEdge + 2), MIN_LABEL_SCALE, MAX_LABEL_SCALE);
const labelFloatOffset = clamp(cellSpacing * 0.74, 0.64, 2.2);
const labelFloatOffset = clamp(cellSpacing * 0.42, 0.36, 1.12);
return {
cellSpacing,