Skip to main content

Texture2D.GetPixelBilinear(number u, number v, number mipLevel = 0)

Gets the filtered pixel color at the normalized coordinates (u, v).

Parameters:

NameTypeDescription
unumberThe u coordinate of the pixel to get.
vnumberThe v coordinate of the pixel to get.
mipLevelnumberThe mipmap level to read from. The range is 0 through the texture's Texture.mipmapCount. The default value is 0.

Usage

---@type Texture2D
local texture2d;

---@type number
local u;

---@type number
local v;

---@type number
local mipLevel;


texture2d.GetPixelBilinear(u, v, mipLevel)