Texture for 2D and 3D. A texture works by registering an image in the video hardware, which then can be used in 3D models or 2D [Sprite] or GUI [Control]. Textures are often created by loading them from a file. See [method @GDScript.load]. Return the texture height. Return the texture size. Return the texture width. The texture's flags. Default flags. Generate mipmaps, repeat, and filter are enabled. Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio. Repeats texture (instead of clamp to edge). Magnifying filter, to enable smooth zooming in of the texture. Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios. More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases. Converts texture to SRGB color space. Repeats texture with alternate sections mirrored. Texture is a video surface.