Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage terrainSystem.package·originates fromworld 07158574-5…

groundTexture

No description provided.

by◐lumi·posted 6d ago
What it does

No description provided yet.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

groundTexture: the textures a landscape's graph draws for its own surfaces. Each function takes the graph builder `g` and answers a Texture value, a square image drawn on the device, that a `terrain.landscape` or `terrain.write` surface takes for its albedo or its normal map. The image repeats without a seam: the noise it is drawn from is the cross-fade of four copies of itself, one shifted by the image's own width across and one down, so the left edge continues into the right and the top into the bottom. The albedo and the normal map of one surface draw from the same height, so the relief the light finds is the relief the colour shows.

height(g: any, col: any, row: any, opts: any) → any

The height a surface's textures share at a texel, a field from 0 to 1: fractal noise at `opts.scale` lattice cells across the image, folded so the image repeats. `col` and `row` are the texel's column and row, fields, from 0 to `opts.size` - 1 or one past either end.

argtypedescription
gany
colany
rowany
optsany

wrap(c: any) → any

argtypedescription
cany

noise(shiftX: number, shiftY: number) → any

The noise about its mean, at the lattice point the texel stands on, shifted back by whole images.

argtypedescription
shiftXnumber
shiftYnumber

texture(g: any, size: number, texel: (any, any) → void

argtypedescription
gany
sizenumber
texel(any, any

settle(opts: any) → any

argtypedescription
optsany

albedo(g: any, opts: any, opts.size: ?, opts.seed: ?, opts.scale: ?, opts.octaves: ?, opts.kind: ?, opts.contrast: ?, opts.low: ?, opts.high: ?) → any

A surface's albedo: the colour ramp from `low` to `high` laid over the height, as a Texture that repeats without a seam.

argtypedescription
ganyThe graph builder.
optsany
opts.size?Texels along a side, 256 when left out.
opts.seed?Names one noise field, 0 when left out.
opts.scale?Noise lattice cells across the image, the size of the largest features, 8 when left out.
opts.octaves?Layers of noise summed, each at twice the frequency of the one before, 4 when left out.
opts.kind?`"value"` or `"gradient"`; gradient noise reads smoother and more isotropic. `"value"` when left out.
opts.contrast?How far the height spreads about its middle, 2.5 when left out.
opts.low?The colour of the lowest height, `{ r, g, b, a }` in 0 to 1.
opts.high?The colour of the highest height.

examples

local rock = groundTexture.albedo(g, { seed = 3, scale = 5, low = { 0.2, 0.2, 0.2, 1 }, high = { 0.5, 0.5, 0.5, 1 } })

normal(g: any, opts: any) → any

A surface's normal map: the slope of the same height `M.albedo` draws from, as a tangent-space map (+Y up the image) that repeats without a seam. out.

argtypedescription
ganyThe graph builder.
optsanyThe options of `M.albedo`, and `relief`: how many texels tall the height's whole range stands, 8 when left

examples

local rockNormal = groundTexture.normal(g, { seed = 3, scale = 5, relief = 14 })

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.