Scratch for Java

Stage::setTextureSampling()

Sets the texture sampling mode Point sampling: both magnification and minification filtering are set to nearest. Linear sampling: magnification filtering is nearest, minification set to linear Bilinear sampling: both magnification filtering is set to linear and minification either to linear-mipmap-nearest (linear interpolation is used within a mipmap, but not between different mipmaps). Trilinear sampling: magnification filtering set to linear, minification to linear-mipmap-linear, which offers the best mipmap quality since linear interpolation to compute the value in each of two maps and then interpolates linearly between these two values.

Syntax

Java

.setTextureSampling(mode)

Parameters

Name Data Type Description
mode int the texture sampling mode. 2: Point Sampling. 3: Linear. 4: Bilinear. 5: Trilinear.

Return

void

setTextureSampling()