mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 14:34:51 +00:00
remove unnecessary assets, add setting persistence
This commit is contained in:
parent
6ae7a19332
commit
fc4146c824
70 changed files with 180 additions and 18618 deletions
|
|
@ -52,6 +52,7 @@ export function updateTerrainTextureShader({
|
|||
baseTextures,
|
||||
alphaTextures,
|
||||
visibilityMask,
|
||||
tiling,
|
||||
}) {
|
||||
const layerCount = baseTextures.length;
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ export function updateTerrainTextureShader({
|
|||
// Add per-texture tiling uniforms
|
||||
baseTextures.forEach((tex, i) => {
|
||||
shader.uniforms[`tiling${i}`] = {
|
||||
value: Math.min(512, { 0: 16, 1: 16, 2: 32, 3: 32, 4: 32, 5: 32 }[i]),
|
||||
value: tiling[i] ?? 32,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue