M MY Multiplayer: Wiki
Side
Kind

engineSetTxdTextureSampling

Client

Overrides how the world samples a txd's texture: what happens past its edges and how it is filtered. It takes the place of the material's own addressing.

bool engineSetTxdTextureSampling(txd|string txd, string name [, string edge = nil, string filter = nil, int priority = 0])

Parameters

NameTypeDescription
txdtxd|stringA txd element, a txd's name, or a glob pattern.
namestringThe texture's name, or a glob pattern.
edgestringwrap, mirror, clamp, border or mirror-once. nil leaves the edge as shipped.default nil
filterstringlinear or point. nil leaves the filter as shipped.default nil
priorityintAmong several overrides for the same texture, the highest priority answers; among equals, the newest.default 0

Returns

true once the override is set. Raises an error if neither edge nor filter is given, or if a value is unknown.

Example

engineSetTxdTextureSampling("infernus", "*", "clamp", "point")

See also