Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

Texture3D.GetPixelBilinear

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public Color GetPixelBilinear(float u, float v, float w, int mipLevel);

Parameters

uU normalized coordinate to access a pixel.
vV normalized coordinate to access a pixel.
wW normalized coordinate to access a pixel.
mipLevelThe mipmap level to be accessed.

Returns

Color The colors to return by bilinear filtering.

Description

Returns the filtered pixel color that represents one mip level of the 3D texture at normalized coordinates (u,v,w).

Coordinates u, v, and w go from 0.0 to 1.0. Texture3D.GetPixelBilinear works in a similar way to Texture2D.GetPixelBilinear(), but with an extra w coordinate. Also, the bounds are expanded to width, height, and depth.

See Also: SetPixel, SetPixels, SetPixels32, GetPixel, GetPixels, GetPixels32, Apply functions.

Did you find this page useful? Please give it a rating: