Skip to content

Api > Texture2D > GetPixelBilinear()


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

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

Parameters:⚓︎

Name Type Description
u number The u coordinate of the pixel to get.
v number The v coordinate of the pixel to get.
mipLevel number The 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)