Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

Grass blades

Swaying grass for a blade mesh, built on @builtin::shaders.grass_material with the same green as @builtin::materials.grass (0.22, 0.62, 0.16) and sway at 1.0. The shader bends each vertex along its blade in proportion to uv.y², so this material belongs on a mesh whose uv.y runs 0 at a blade's root to 1 at its tip — a merged field of blades, each a cross of two tapered quads. It inherits the Rust-side render defaults (opaque, back-face culled, queue 2000) so its pipeline matches the library variant compiled at startup.

Inputs

  • colors.base_color (0.22, 0.62, 0.16, 1.0) — the grass green tint.
  • floats.sway (1.0) — the full blade bend. @builtin::materials.grass leaves it at the shader's default of 0 for a ground surface.