masonryProjection.shaderModule
Real-scale texture placement shared by the masonryMaterials shaders (`masonrySurface`, `roadPaint`, `toonMasonry`). The materials ignore a mesh's own UVs: each point is placed by where it stands on its object, in metres, so a 1 m cube, a 3 m wall and a 10 cm brick all show bricks…
masonryProjection
Real-scale texture placement shared by the masonryMaterials shaders (masonrySurface, roadPaint, toonMasonry). The materials ignore a mesh's own UVs: each point is placed by where it stands on its object, in metres, so a 1 m cube, a 3 m wall and a 10 cm brick all show bricks, blocks and tiles at their real size, and the texture stays on the object when it moves or turns. A box face takes one projection; a curved surface blends the nearest two or three over a narrow band. Image up is the object's +Y on the sides and its -Z on the top. mp_vertex is the vertex hook; mp_frame, mp_sample and mp_normal build and sample the projection. After stoneMaterials' stoneTriplanar (Bedrock, MIT).
Scoped to this part · feeds back into the world's score.