Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit65083fe8f2

README.md

texture (nodebox)

Textures: images drawn on the device as Texture values, a width, a height and one colour per texel. texture.noise and texture.gradient draw from a formula, texture.from_shader from an author's compute shader and texture.from_raster from the layers of a raster. A Texture is a record of width, height, format ("rgba32f") and texels, one Vec4 colour per texel row by row from the top left, held on the device. A material takes a Texture in a slot, io.output shows one, and io.export saves one as a texture asset.

texture.cells is the part all four are built from: one point per texel carrying its column and row.