3D engine that AI agents drive
Merge remote-tracking branch 'origin/main' into feat/texture-updates
Nguyen Xuan An2658a5fda4d2
diff --cc src/renderer.jsindex 42c87cde,1b8627b0..1e6f304b--- a/src/renderer.js+++ b/src/renderer.js@@@ -18,10 -19,9 +19,9 @@@ import { MaterialSnapshot } from './matimport { fittedFogDensity } from './fog-fit.js';import { InstanceSelection, extractFrustumPlanes, geometryBoundingSphere, selectInstances } from './render-culling.js';import { resolveShadowLight, shadowBiasPerSlope } from './shadow-light.js';-import { requireDeformationSupport } from './shader-registry.js';+import { requireDeformationSupport, textureUpdateSupport } from './shader-registry.js';const SHADOW_MAP_SIZE = 2048;- const MATERIAL_TAGS = { armor: 1, floor: 2, water: 3, foliage: 4, terrain: 5, grass: 7, fire: 8, smoke: 9, unlit: 10, liquid: 11, foam: 12 };// Liquid and foam see the resolved opaque scene, so they draw in their own pass after it.const TRANSLUCENT_TAGS = new Set(['liquid', 'foam']);const DEFAULT_LIQUID = Object.freeze({ thickness: 0.5, ior: 1.33, refraction: 1, scattering: 1, foamOpacity: 0.55, foamSoftness: 1 });