tinyworld-shader-fx
Installation
SKILL.md
Tiny World Shader FX
Where the shaders live and how to extend them without breaking the guarded build.
Authoritative shader files
- Terrain:
engine/landscape/shaders.js—SAND_VS,SAND_FS,LOWPOLY_FS- the
sandMat/sandMatLowPolyShaderMaterials.
- the
- Water:
engine/landscape/water.js— the animated reflective ocean plane. - These two files
Object.assign(LandscapeEngine.prototype, {...})afterLandscapeEngine.jsdefines the class, so they override the inline_initSharedShaders/_initWatercopies still present inLandscapeEngine.js(lines ~302 / ~893). The split files are the live ones — edit those. The inline copies are dead but left in place; don't rely on them. - The ocean
time+cameraPosuniforms are advanced inLandscapeEngine.update(). - Voxel-world waterfalls/flow are separate:
engine/world/05-tile-factory.js(getWaterfallCurtainMaterial,getWaterfallSurfaceMaterial, foam puffs) driven byupdateWaterfallEffects(t)/tickWaterTextureFlow(dt)in the animation loop.check.jsguards these names — keep them.