Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AESContext
- AStar2D
- AStar3D
- AStarGrid2D
- AudioEffectInstance (1)
- AudioSample
- AudioSamplePlayback
- AudioStreamPlayback (5)
- CameraFeed
- CharFXTransform
- ConfigFile
- Crypto
- DTLSServer
- DirAccess
- ENetConnection
- EditorContextMenuPlugin
- EditorDebuggerPlugin
- EditorDebuggerSession
- EditorExportPlatform (6)
- EditorExportPlugin
- EditorExportPreset
- EditorFeatureProfile
- EditorFileSystemImportFormatSupportQuery
- EditorInspectorPlugin
- EditorResourceConversionPlugin
- EditorResourcePreviewGenerator
- EditorResourceTooltipPlugin
- EditorSceneFormatImporter (4)
- EditorScenePostImport
- EditorScenePostImportPlugin
- EditorScript
- EditorTranslationParserPlugin
- EncodedObjectAsID
- EngineProfiler
- Expression
- FileAccess
- GLTFObjectModelProperty
- HMACContext
- HTTPClient
- HashingContext
- ImageFormatLoader (1)
- JavaClass
- JavaObject
- JavaScriptObject
- KinematicCollision2D
- KinematicCollision3D
- Lightmapper (1)
- MeshConvexDecompositionSettings
- MeshDataTool
- MultiplayerAPI (2)
- Mutex
- NavigationPathQueryParameters2D
- NavigationPathQueryParameters3D
- NavigationPathQueryResult2D
- NavigationPathQueryResult3D
- Node3DGizmo (1)
- OggPacketSequencePlayback
- OpenXRAPIExtension
- PCKPacker
- PackedDataContainerRef
- PacketPeer (8)
- PhysicsPointQueryParameters2D
- PhysicsPointQueryParameters3D
- PhysicsRayQueryParameters2D
- PhysicsRayQueryParameters3D
- PhysicsShapeQueryParameters2D
- PhysicsShapeQueryParameters3D
- PhysicsTestMotionParameters2D
- PhysicsTestMotionParameters3D
- PhysicsTestMotionResult2D
- PhysicsTestMotionResult3D
- RDAttachmentFormat
- RDFramebufferPass
- RDPipelineColorBlendState
- RDPipelineColorBlendStateAttachment
- RDPipelineDepthStencilState
- RDPipelineMultisampleState
- RDPipelineRasterizationState
- RDPipelineSpecializationConstant
- RDSamplerState
- RDShaderSource
- RDTextureFormat
- RDTextureView
- RDUniform
- RDVertexAttribute
- RandomNumberGenerator
- RegEx
- RegExMatch
- RenderSceneBuffers (2)
- RenderSceneBuffersConfiguration
- Resource (103)
- ResourceFormatLoader
- ResourceFormatSaver
- ResourceImporter (16)
- SceneState
- SceneTreeTimer
- Semaphore
- SkinReference
- StreamPeer (5)
- SurfaceTool
- TCPServer
- TLSOptions
- TextLine
- TextParagraph
- TextServer (1)
- Thread
- TranslationDomain
- TriangleMesh
- Tween
- Tweener (5)
- UDPServer
- UPNP
- UPNPDevice
- WeakRef
- WebRTCPeerConnection (1)
- XMLParser
- XRInterface (4)
- XRPose
- XRTracker (2)
- ZIPPacker
- ZIPReader
Table of contents
-
var anisotropy_max: float = 1.0 -
var border_color = SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK -
var compare_op = COMPARE_OP_ALWAYS -
var enable_compare: bool = false -
var lod_bias: float = 0.0 -
var mag_filter = SAMPLER_FILTER_NEAREST -
var max_lod: float = 1e+20 -
var min_filter = SAMPLER_FILTER_NEAREST -
var min_lod: float = 0.0 -
var mip_filter = SAMPLER_FILTER_NEAREST -
var repeat_u = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE -
var repeat_v = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE -
var repeat_w = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE -
var unnormalized_uvw: bool = false -
var use_anisotropy: bool = false
RDSamplerState #
is_refcounted, is_instantiable, core, not_builtin_classes
Sampler state (used by RenderingDevice).
This object is used by RenderingDevice.
Members #
var anisotropy_max: float = 1.0#
Maximum anisotropy that can be used when sampling. Only effective if use_anisotropy is true. Higher values result in a sharper sampler at oblique angles, at the cost of performance (due to memory bandwidth). This value may be limited by the graphics hardware in use. Most graphics hardware only supports values up to 16.0.
If anisotropy_max is 1.0, forcibly disables anisotropy even if use_anisotropy is true.
var border_color = SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK#
The border color that will be returned when sampling outside the sampler's bounds and the repeat_u, repeat_v or repeat_w modes have repeating disabled.
var compare_op = COMPARE_OP_ALWAYS#
The compare operation to use. Only effective if enable_compare is true.
var enable_compare: bool = false#
If true, returned values will be based on the comparison operation defined in compare_op. This is a hardware-based approach and is therefore faster than performing this manually in a shader. For example, compare operations are used for shadow map rendering by comparing depth values from a shadow sampler.
var lod_bias: float = 0.0#
The mipmap LOD bias to use. Positive values will make the sampler blurrier at a given distance, while negative values will make the sampler sharper at a given distance (at the risk of looking grainy). Recommended values are between -0.5 and 0.0. Only effective if the sampler has mipmaps available.
var mag_filter = SAMPLER_FILTER_NEAREST#
The sampler's magnification filter. It is the filtering method used when sampling texels that appear bigger than on-screen pixels.
var max_lod: float = 1e+20#
The maximum mipmap LOD bias to display (lowest resolution). Only effective if the sampler has mipmaps available.
var min_filter = SAMPLER_FILTER_NEAREST#
The sampler's minification filter. It is the filtering method used when sampling texels that appear smaller than on-screen pixels.
var min_lod: float = 0.0#
The minimum mipmap LOD bias to display (highest resolution). Only effective if the sampler has mipmaps available.
var mip_filter = SAMPLER_FILTER_NEAREST#
The filtering method to use for mipmaps.
var repeat_u = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE#
The repeat mode to use along the U axis of UV coordinates. This affects the returned values if sampling outside the UV bounds.
var repeat_v = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE#
The repeat mode to use along the V axis of UV coordinates. This affects the returned values if sampling outside the UV bounds.
var repeat_w = SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE#
The repeat mode to use along the W axis of UV coordinates. This affects the returned values if sampling outside the UV bounds. Only effective for 3D samplers.
var unnormalized_uvw: bool = false#
If true, the texture will be sampled with coordinates ranging from 0 to the texture's resolution. Otherwise, the coordinates will be normalized and range from 0 to 1.
var use_anisotropy: bool = false#
If true, perform anisotropic sampling. See anisotropy_max.
Methods #