3D Lingo Dictionary > L-N > nearFiltering

 

nearFiltering

Syntax

member(whichCastmember).texture(whichTexture).nearFiltering
member(whichCastmember).shader(whichShader).texture(whichTexture).nearFiltering
member(whichCastmember).model(whichModel).shader.texture(whichTexture).nearFiltering
member(whichCastmember).model(whichModel).shaderList[shaderListIndex].texture(whichTexture).nearFiltering

Description

3D texture property; allows you to get or set whether bilinear filtering is used when rendering a projected texture map that covers more screen space than the original texture source. Bilinear filtering smooths any errors across the texture and thus improves the texture's appearance. Bilinear filtering smooths errors in two dimensions. Trilinear filtering smooths errors in three dimensions. Filtering improves appearance at the expense of performance, with bilinear being less performance-costly than trilinear.

When the property's value is TRUE, bilinear filtering is used. When the value is FALSE, bilinear filtering is not used. The default is TRUE.

Example

This statement turns off bilinear filtering for the texture named gbTexture in the cast member Scene:

member("Scene").texture("gbTexture").nearFiltering = FALSE