CanvasItemTextureFilter

    RenderingServer.swift:1898
    enum CanvasItemTextureFilter

    Cases

    • case `default`

      Uses the default filter mode for this Viewport.

    • case nearest

      The texture filter reads from the nearest pixel only. This makes the texture look pixelated from up close, and grainy from a distance (due to mipmaps not being sampled).

    • case linear

      The texture filter blends between the nearest 4 pixels. This makes the texture look smooth from up close, and grainy from a distance (due to mipmaps not being sampled).

    • case nearestWithMipmaps

      The texture filter reads from the nearest pixel and blends between the nearest 2 mipmaps (or uses the nearest mipmap if ProjectSettings/rendering/textures/defaultFilters/useNearestMipmapFilter is true). This makes the texture look pixelated from up close, and smooth from a distance.

    • case linearWithMipmaps

      The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps (or uses the nearest mipmap if ProjectSettings/rendering/textures/defaultFilters/useNearestMipmapFilter is true). This makes the texture look smooth from up close, and smooth from a distance.

    • case nearestWithMipmapsAnisotropic

      The texture filter reads from the nearest pixel and blends between 2 mipmaps (or uses the nearest mipmap if ProjectSettings/rendering/textures/defaultFilters/useNearestMipmapFilter is true) based on the angle between the surface and the camera view. This makes the texture look pixelated from up close, and smooth from a distance. Anisotropic filtering improves texture quality on surfaces that are almost in line with the camera, but is slightly slower. The anisotropic filtering level can be changed by adjusting ProjectSettings/rendering/textures/defaultFilters/anisotropicFilteringLevel.

    • case linearWithMipmapsAnisotropic

      The texture filter blends between the nearest 4 pixels and blends between 2 mipmaps (or uses the nearest mipmap if ProjectSettings/rendering/textures/defaultFilters/useNearestMipmapFilter is true) based on the angle between the surface and the camera view. This makes the texture look smooth from up close, and smooth from a distance. Anisotropic filtering improves texture quality on surfaces that are almost in line with the camera, but is slightly slower. The anisotropic filtering level can be changed by adjusting ProjectSettings/rendering/textures/defaultFilters/anisotropicFilteringLevel.

    • case max

      Max value for CanvasItemTextureFilter enum.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (590) members.

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features