Vertices (allow only)
Target API: 5 · Target build:
bbb6l5(2026-11-20, production and preprod) · Status: Verified (ported to the current API — on-device re-check recommended) Wrap everything in#ifndef BLOXD_STRICT. For exact conditions (the allow title list; Custom Games being strict) see Per-game shader-pack policy
Grass swaying in wind (move only the tops)
#ifndef BLOXD_STRICT
fn bloxdTerrainVertex(v: BloxdVertexIn) -> BloxdVertex {
var out = bloxdDefaultVertex(v);
let sway = sin(bloxdSeconds() * 1.7 + v.position.x * 0.6 + v.position.z * 0.5);
let sideFactor = max(0.0, 1.0 - abs(v.normal.y)); // vertical faces only
out.position.y += sway * 0.05 * sideFactor;
return out;
}
#endifLiquid surface waves (top faces only)
#ifndef BLOXD_STRICT
fn bloxdLiquidVertex(v: BloxdVertexIn) -> BloxdVertex {
var out = bloxdDefaultVertex(v);
let topness = clamp(v.normal.y * 2.0, 0.0, 1.0);
if (topness > 0.001) {
let h = sin(v.position.x * 0.9 + bloxdSeconds() * 1.6) * 0.5
+ sin(v.position.z * 1.2 + bloxdSeconds() * 1.3) * 0.3;
out.position.y += h * 0.14 * topness;
}
return out;
}
#endifBreathing terrain
#ifndef BLOXD_STRICT
fn bloxdTerrainVertex(v: BloxdVertexIn) -> BloxdVertex {
var out = bloxdDefaultVertex(v);
let pulse = sin(bloxdSeconds() * 0.8 + v.position.x * 0.2 + v.position.z * 0.2);
out.position += v.normal * pulse * 0.03; // slight expand/contract along normals
return out;
}
#endifRolling terrain (giant sine waves)
#ifndef BLOXD_STRICT
fn bloxdTerrainVertex(v: BloxdVertexIn) -> BloxdVertex {
var out = bloxdDefaultVertex(v);
out.position.y += sin(v.position.x * 0.15 + bloxdSeconds() * 0.9) * 0.4
+ sin(v.position.z * 0.11 - bloxdSeconds() * 0.7) * 0.3;
return out;
}
#endif