TileTexture beta
TypeAlias of @v12-engine/client
ts
export type TileTexture = ({
file: string;
color: Rgb;
height?: string;
normal?: string;
} | {
pattern: string | PatternDef | PatternMaker;
color: Rgb;
seed: number;
recipe?: GroundRecipe;
}
/** Mixed of two tiles' textures, by their index in the paint (0 for one there is none of: its colour then) */
| {
mix: GroundMix & {
first: number;
second: number;
};
color: Rgb;
}) & {
adjust?: GroundAdjust;
seamless?: Seamless;
layers?: GroundLayerSource[];
};Where the texture of a tile comes from: a file, or made in code (see groundTexture)