Documentation
¶
Overview ¶
Package Environment provides methods for working with Environment object instances.
Index ¶
- type Advanced
- type AmbientSource
- type Any
- type BGMode
- type Extension
- type FogMode
- type GlowBlendMode
- type ID
- type Instance
- func (self Instance) AdjustmentBrightness() Float.X
- func (self Instance) AdjustmentColorCorrection() Texture.Instance
- func (self Instance) AdjustmentContrast() Float.X
- func (self Instance) AdjustmentEnabled() bool
- func (self Instance) AdjustmentSaturation() Float.X
- func (self Instance) AmbientLightColor() Color.RGBA
- func (self Instance) AmbientLightEnergy() Float.X
- func (self Instance) AmbientLightSkyContribution() Float.X
- func (self Instance) AmbientLightSource() AmbientSource
- func (self Instance) AsEnvironment() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) BackgroundCameraFeedId() int
- func (self Instance) BackgroundCanvasMaxLayer() int
- func (self Instance) BackgroundColor() Color.RGBA
- func (self Instance) BackgroundEnergyMultiplier() Float.X
- func (self Instance) BackgroundIntensity() Float.X
- func (self Instance) BackgroundMode() BGMode
- func (self Instance) FogAerialPerspective() Float.X
- func (self Instance) FogDensity() Float.X
- func (self Instance) FogDepthBegin() Float.X
- func (self Instance) FogDepthCurve() Float.X
- func (self Instance) FogDepthEnd() Float.X
- func (self Instance) FogEnabled() bool
- func (self Instance) FogHeight() Float.X
- func (self Instance) FogHeightDensity() Float.X
- func (self Instance) FogLightColor() Color.RGBA
- func (self Instance) FogLightEnergy() Float.X
- func (self Instance) FogMode() FogMode
- func (self Instance) FogSkyAffect() Float.X
- func (self Instance) FogSunScatter() Float.X
- func (self Instance) GetGlowLevel(idx int) Float.X
- func (self Instance) GlowBlendMode() GlowBlendMode
- func (self Instance) GlowBloom() Float.X
- func (self Instance) GlowEnabled() bool
- func (self Instance) GlowHdrLuminanceCap() Float.X
- func (self Instance) GlowHdrScale() Float.X
- func (self Instance) GlowHdrThreshold() Float.X
- func (self Instance) GlowIntensity() Float.X
- func (self Instance) GlowMap() Texture.Instance
- func (self Instance) GlowMapStrength() Float.X
- func (self Instance) GlowMix() Float.X
- func (self Instance) GlowNormalized() bool
- func (self Instance) GlowStrength() Float.X
- func (self Instance) ID() ID
- func (self Instance) ReflectedLightSource() ReflectionSource
- func (self Instance) SdfgiBounceFeedback() Float.X
- func (self Instance) SdfgiCascade0Distance() Float.X
- func (self Instance) SdfgiCascades() int
- func (self Instance) SdfgiEnabled() bool
- func (self Instance) SdfgiEnergy() Float.X
- func (self Instance) SdfgiMaxDistance() Float.X
- func (self Instance) SdfgiMinCellSize() Float.X
- func (self Instance) SdfgiNormalBias() Float.X
- func (self Instance) SdfgiProbeBias() Float.X
- func (self Instance) SdfgiReadSkyLight() bool
- func (self Instance) SdfgiUseOcclusion() bool
- func (self Instance) SdfgiYScale() SDFGIYScale
- func (self Instance) SetAdjustmentBrightness(value Float.X)
- func (self Instance) SetAdjustmentColorCorrection(value Texture.Instance)
- func (self Instance) SetAdjustmentContrast(value Float.X)
- func (self Instance) SetAdjustmentEnabled(value bool)
- func (self Instance) SetAdjustmentSaturation(value Float.X)
- func (self Instance) SetAmbientLightColor(value Color.RGBA)
- func (self Instance) SetAmbientLightEnergy(value Float.X)
- func (self Instance) SetAmbientLightSkyContribution(value Float.X)
- func (self Instance) SetAmbientLightSource(value AmbientSource)
- func (self Instance) SetBackgroundCameraFeedId(value int)
- func (self Instance) SetBackgroundCanvasMaxLayer(value int)
- func (self Instance) SetBackgroundColor(value Color.RGBA)
- func (self Instance) SetBackgroundEnergyMultiplier(value Float.X)
- func (self Instance) SetBackgroundIntensity(value Float.X)
- func (self Instance) SetBackgroundMode(value BGMode)
- func (self Instance) SetFogAerialPerspective(value Float.X)
- func (self Instance) SetFogDensity(value Float.X)
- func (self Instance) SetFogDepthBegin(value Float.X)
- func (self Instance) SetFogDepthCurve(value Float.X)
- func (self Instance) SetFogDepthEnd(value Float.X)
- func (self Instance) SetFogEnabled(value bool)
- func (self Instance) SetFogHeight(value Float.X)
- func (self Instance) SetFogHeightDensity(value Float.X)
- func (self Instance) SetFogLightColor(value Color.RGBA)
- func (self Instance) SetFogLightEnergy(value Float.X)
- func (self Instance) SetFogMode(value FogMode)
- func (self Instance) SetFogSkyAffect(value Float.X)
- func (self Instance) SetFogSunScatter(value Float.X)
- func (self Instance) SetGlowBlendMode(value GlowBlendMode)
- func (self Instance) SetGlowBloom(value Float.X)
- func (self Instance) SetGlowEnabled(value bool)
- func (self Instance) SetGlowHdrLuminanceCap(value Float.X)
- func (self Instance) SetGlowHdrScale(value Float.X)
- func (self Instance) SetGlowHdrThreshold(value Float.X)
- func (self Instance) SetGlowIntensity(value Float.X)
- func (self Instance) SetGlowLevel(idx int, intensity Float.X)
- func (self Instance) SetGlowMap(value Texture.Instance)
- func (self Instance) SetGlowMapStrength(value Float.X)
- func (self Instance) SetGlowMix(value Float.X)
- func (self Instance) SetGlowNormalized(value bool)
- func (self Instance) SetGlowStrength(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetReflectedLightSource(value ReflectionSource)
- func (self Instance) SetSdfgiBounceFeedback(value Float.X)
- func (self Instance) SetSdfgiCascade0Distance(value Float.X)
- func (self Instance) SetSdfgiCascades(value int)
- func (self Instance) SetSdfgiEnabled(value bool)
- func (self Instance) SetSdfgiEnergy(value Float.X)
- func (self Instance) SetSdfgiMaxDistance(value Float.X)
- func (self Instance) SetSdfgiMinCellSize(value Float.X)
- func (self Instance) SetSdfgiNormalBias(value Float.X)
- func (self Instance) SetSdfgiProbeBias(value Float.X)
- func (self Instance) SetSdfgiReadSkyLight(value bool)
- func (self Instance) SetSdfgiUseOcclusion(value bool)
- func (self Instance) SetSdfgiYScale(value SDFGIYScale)
- func (self Instance) SetSky(value Sky.Instance)
- func (self Instance) SetSkyCustomFov(value Float.X)
- func (self Instance) SetSkyRotation(value Euler.Radians)
- func (self Instance) SetSsaoAoChannelAffect(value Float.X)
- func (self Instance) SetSsaoDetail(value Float.X)
- func (self Instance) SetSsaoEnabled(value bool)
- func (self Instance) SetSsaoHorizon(value Float.X)
- func (self Instance) SetSsaoIntensity(value Float.X)
- func (self Instance) SetSsaoLightAffect(value Float.X)
- func (self Instance) SetSsaoPower(value Float.X)
- func (self Instance) SetSsaoRadius(value Float.X)
- func (self Instance) SetSsaoSharpness(value Float.X)
- func (self Instance) SetSsilEnabled(value bool)
- func (self Instance) SetSsilIntensity(value Float.X)
- func (self Instance) SetSsilNormalRejection(value Float.X)
- func (self Instance) SetSsilRadius(value Float.X)
- func (self Instance) SetSsilSharpness(value Float.X)
- func (self Instance) SetSsrDepthTolerance(value Float.X)
- func (self Instance) SetSsrEnabled(value bool)
- func (self Instance) SetSsrFadeIn(value Float.X)
- func (self Instance) SetSsrFadeOut(value Float.X)
- func (self Instance) SetSsrMaxSteps(value int)
- func (self Instance) SetTonemapExposure(value Float.X)
- func (self Instance) SetTonemapMode(value ToneMapper)
- func (self Instance) SetTonemapWhite(value Float.X)
- func (self Instance) SetVolumetricFogAlbedo(value Color.RGBA)
- func (self Instance) SetVolumetricFogAmbientInject(value Float.X)
- func (self Instance) SetVolumetricFogAnisotropy(value Float.X)
- func (self Instance) SetVolumetricFogDensity(value Float.X)
- func (self Instance) SetVolumetricFogDetailSpread(value Float.X)
- func (self Instance) SetVolumetricFogEmission(value Color.RGBA)
- func (self Instance) SetVolumetricFogEmissionEnergy(value Float.X)
- func (self Instance) SetVolumetricFogEnabled(value bool)
- func (self Instance) SetVolumetricFogGiInject(value Float.X)
- func (self Instance) SetVolumetricFogLength(value Float.X)
- func (self Instance) SetVolumetricFogSkyAffect(value Float.X)
- func (self Instance) SetVolumetricFogTemporalReprojectionAmount(value Float.X)
- func (self Instance) SetVolumetricFogTemporalReprojectionEnabled(value bool)
- func (self Instance) Sky() Sky.Instance
- func (self Instance) SkyCustomFov() Float.X
- func (self Instance) SkyRotation() Euler.Radians
- func (self Instance) SsaoAoChannelAffect() Float.X
- func (self Instance) SsaoDetail() Float.X
- func (self Instance) SsaoEnabled() bool
- func (self Instance) SsaoHorizon() Float.X
- func (self Instance) SsaoIntensity() Float.X
- func (self Instance) SsaoLightAffect() Float.X
- func (self Instance) SsaoPower() Float.X
- func (self Instance) SsaoRadius() Float.X
- func (self Instance) SsaoSharpness() Float.X
- func (self Instance) SsilEnabled() bool
- func (self Instance) SsilIntensity() Float.X
- func (self Instance) SsilNormalRejection() Float.X
- func (self Instance) SsilRadius() Float.X
- func (self Instance) SsilSharpness() Float.X
- func (self Instance) SsrDepthTolerance() Float.X
- func (self Instance) SsrEnabled() bool
- func (self Instance) SsrFadeIn() Float.X
- func (self Instance) SsrFadeOut() Float.X
- func (self Instance) SsrMaxSteps() int
- func (self Instance) TonemapExposure() Float.X
- func (self Instance) TonemapMode() ToneMapper
- func (self Instance) TonemapWhite() Float.X
- func (self Instance) Virtual(name string) reflect.Value
- func (self Instance) VolumetricFogAlbedo() Color.RGBA
- func (self Instance) VolumetricFogAmbientInject() Float.X
- func (self Instance) VolumetricFogAnisotropy() Float.X
- func (self Instance) VolumetricFogDensity() Float.X
- func (self Instance) VolumetricFogDetailSpread() Float.X
- func (self Instance) VolumetricFogEmission() Color.RGBA
- func (self Instance) VolumetricFogEmissionEnergy() Float.X
- func (self Instance) VolumetricFogEnabled() bool
- func (self Instance) VolumetricFogGiInject() Float.X
- func (self Instance) VolumetricFogLength() Float.X
- func (self Instance) VolumetricFogSkyAffect() Float.X
- func (self Instance) VolumetricFogTemporalReprojectionAmount() Float.X
- func (self Instance) VolumetricFogTemporalReprojectionEnabled() bool
- type ReflectionSource
- type SDFGIYScale
- type ToneMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type AmbientSource ¶
type AmbientSource int //gd:Environment.AmbientSource
const ( /*Gather ambient light from whichever source is specified as the background.*/ AmbientSourceBg AmbientSource = 0 /*Disable ambient light. This provides a slight performance boost over [constant AMBIENT_SOURCE_SKY].*/ AmbientSourceDisabled AmbientSource = 1 /*Specify a specific [Color] for ambient light. This provides a slight performance boost over [constant AMBIENT_SOURCE_SKY].*/ AmbientSourceColor AmbientSource = 2 /*Gather ambient light from the [Sky] regardless of what the background is.*/ AmbientSourceSky AmbientSource = 3 )
type BGMode ¶
type BGMode int //gd:Environment.BGMode
const ( /*Clears the background using the clear color defined in [member ProjectSettings.rendering/environment/defaults/default_clear_color].*/ BgClearColor BGMode = 0 /*Clears the background using a custom clear color.*/ BgColor BGMode = 1 /*Displays a user-defined sky in the background.*/ BgSky BGMode = 2 /*Displays a [CanvasLayer] in the background.*/ BgCanvas BGMode = 3 /*Keeps on screen every pixel drawn in the background. This is the fastest background mode, but it can only be safely used in fully-interior scenes (no visible sky or sky reflections). If enabled in a scene where the background is visible, "ghost trail" artifacts will be visible when moving the camera.*/ BgKeep BGMode = 4 /*Displays a camera feed in the background.*/ BgCameraFeed BGMode = 5 /*Represents the size of the [enum BGMode] enum.*/ BgMax BGMode = 6 )
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsEnvironment ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
type FogMode ¶
type FogMode int //gd:Environment.FogMode
const ( /*Use a physically-based fog model defined primarily by fog density.*/ FogModeExponential FogMode = 0 /*Use a simple fog model defined by start and end positions and a custom curve. While not physically accurate, this model can be useful when you need more artistic control.*/ FogModeDepth FogMode = 1 )
type GlowBlendMode ¶
type GlowBlendMode int //gd:Environment.GlowBlendMode
const ( /*Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.*/ GlowBlendModeAdditive GlowBlendMode = 0 /*Screen glow blending mode. Increases brightness, used frequently with bloom.*/ GlowBlendModeScreen GlowBlendMode = 1 /*Soft light glow blending mode. Modifies contrast, exposes shadows and highlights (vivid bloom).*/ GlowBlendModeSoftlight GlowBlendMode = 2 /*Replace glow blending mode. Replaces all pixels' color by the glow value. This can be used to simulate a full-screen blur effect by tweaking the glow parameters to match the original image's brightness.*/ GlowBlendModeReplace GlowBlendMode = 3 /*Mixes the glow with the underlying color to avoid increasing brightness as much while still maintaining a glow effect.*/ GlowBlendModeMix GlowBlendMode = 4 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.Environment
Resource for environment nodes (like [WorldEnvironment]) that define multiple environment operations (such as background [Sky] or [Color], ambient light, fog, depth-of-field...). These parameters affect the final render of the scene. The order of these operations is: - Depth of Field Blur - Glow - Tonemap (Auto Exposure) - Adjustments
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AdjustmentBrightness ¶
func (Instance) AdjustmentColorCorrection ¶
func (Instance) AdjustmentContrast ¶
func (Instance) AdjustmentEnabled ¶
func (Instance) AdjustmentSaturation ¶
func (Instance) AmbientLightColor ¶
func (Instance) AmbientLightEnergy ¶
func (Instance) AmbientLightSkyContribution ¶
func (Instance) AmbientLightSource ¶
func (self Instance) AmbientLightSource() AmbientSource
func (Instance) AsEnvironment ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) BackgroundCameraFeedId ¶
func (Instance) BackgroundCanvasMaxLayer ¶
func (Instance) BackgroundColor ¶
func (Instance) BackgroundEnergyMultiplier ¶
func (Instance) BackgroundIntensity ¶
func (Instance) BackgroundMode ¶
func (Instance) FogAerialPerspective ¶
func (Instance) FogDensity ¶
func (Instance) FogDepthBegin ¶
func (Instance) FogDepthCurve ¶
func (Instance) FogDepthEnd ¶
func (Instance) FogEnabled ¶
func (Instance) FogHeightDensity ¶
func (Instance) FogLightColor ¶
func (Instance) FogLightEnergy ¶
func (Instance) FogSkyAffect ¶
func (Instance) FogSunScatter ¶
func (Instance) GetGlowLevel ¶
Returns the intensity of the glow level [param idx].
func (Instance) GlowBlendMode ¶
func (self Instance) GlowBlendMode() GlowBlendMode
func (Instance) GlowEnabled ¶
func (Instance) GlowHdrLuminanceCap ¶
func (Instance) GlowHdrScale ¶
func (Instance) GlowHdrThreshold ¶
func (Instance) GlowIntensity ¶
func (Instance) GlowMapStrength ¶
func (Instance) GlowNormalized ¶
func (Instance) GlowStrength ¶
func (Instance) ReflectedLightSource ¶
func (self Instance) ReflectedLightSource() ReflectionSource
func (Instance) SdfgiBounceFeedback ¶
func (Instance) SdfgiCascade0Distance ¶
func (Instance) SdfgiCascades ¶
func (Instance) SdfgiEnabled ¶
func (Instance) SdfgiEnergy ¶
func (Instance) SdfgiMaxDistance ¶
func (Instance) SdfgiMinCellSize ¶
func (Instance) SdfgiNormalBias ¶
func (Instance) SdfgiProbeBias ¶
func (Instance) SdfgiReadSkyLight ¶
func (Instance) SdfgiUseOcclusion ¶
func (Instance) SdfgiYScale ¶
func (self Instance) SdfgiYScale() SDFGIYScale
func (Instance) SetAdjustmentBrightness ¶
func (Instance) SetAdjustmentColorCorrection ¶
func (Instance) SetAdjustmentContrast ¶
func (Instance) SetAdjustmentEnabled ¶
func (Instance) SetAdjustmentSaturation ¶
func (Instance) SetAmbientLightColor ¶
func (Instance) SetAmbientLightEnergy ¶
func (Instance) SetAmbientLightSkyContribution ¶
func (Instance) SetAmbientLightSource ¶
func (self Instance) SetAmbientLightSource(value AmbientSource)
func (Instance) SetBackgroundCameraFeedId ¶
func (Instance) SetBackgroundCanvasMaxLayer ¶
func (Instance) SetBackgroundColor ¶
func (Instance) SetBackgroundEnergyMultiplier ¶
func (Instance) SetBackgroundIntensity ¶
func (Instance) SetBackgroundMode ¶
func (Instance) SetFogAerialPerspective ¶
func (Instance) SetFogDensity ¶
func (Instance) SetFogDepthBegin ¶
func (Instance) SetFogDepthCurve ¶
func (Instance) SetFogDepthEnd ¶
func (Instance) SetFogEnabled ¶
func (Instance) SetFogHeight ¶
func (Instance) SetFogHeightDensity ¶
func (Instance) SetFogLightColor ¶
func (Instance) SetFogLightEnergy ¶
func (Instance) SetFogMode ¶
func (Instance) SetFogSkyAffect ¶
func (Instance) SetFogSunScatter ¶
func (Instance) SetGlowBlendMode ¶
func (self Instance) SetGlowBlendMode(value GlowBlendMode)
func (Instance) SetGlowBloom ¶
func (Instance) SetGlowEnabled ¶
func (Instance) SetGlowHdrLuminanceCap ¶
func (Instance) SetGlowHdrScale ¶
func (Instance) SetGlowHdrThreshold ¶
func (Instance) SetGlowIntensity ¶
func (Instance) SetGlowLevel ¶
Sets the intensity of the glow level [param idx]. A value above [code]0.0[/code] enables the level. Each level relies on the previous level. This means that enabling higher glow levels will slow down the glow effect rendering, even if previous levels aren't enabled.
func (Instance) SetGlowMap ¶
func (Instance) SetGlowMapStrength ¶
func (Instance) SetGlowMix ¶
func (Instance) SetGlowNormalized ¶
func (Instance) SetGlowStrength ¶
func (Instance) SetReflectedLightSource ¶
func (self Instance) SetReflectedLightSource(value ReflectionSource)
func (Instance) SetSdfgiBounceFeedback ¶
func (Instance) SetSdfgiCascade0Distance ¶
func (Instance) SetSdfgiCascades ¶
func (Instance) SetSdfgiEnabled ¶
func (Instance) SetSdfgiEnergy ¶
func (Instance) SetSdfgiMaxDistance ¶
func (Instance) SetSdfgiMinCellSize ¶
func (Instance) SetSdfgiNormalBias ¶
func (Instance) SetSdfgiProbeBias ¶
func (Instance) SetSdfgiReadSkyLight ¶
func (Instance) SetSdfgiUseOcclusion ¶
func (Instance) SetSdfgiYScale ¶
func (self Instance) SetSdfgiYScale(value SDFGIYScale)
func (Instance) SetSkyCustomFov ¶
func (Instance) SetSkyRotation ¶
func (Instance) SetSsaoAoChannelAffect ¶
func (Instance) SetSsaoDetail ¶
func (Instance) SetSsaoEnabled ¶
func (Instance) SetSsaoHorizon ¶
func (Instance) SetSsaoIntensity ¶
func (Instance) SetSsaoLightAffect ¶
func (Instance) SetSsaoPower ¶
func (Instance) SetSsaoRadius ¶
func (Instance) SetSsaoSharpness ¶
func (Instance) SetSsilEnabled ¶
func (Instance) SetSsilIntensity ¶
func (Instance) SetSsilNormalRejection ¶
func (Instance) SetSsilRadius ¶
func (Instance) SetSsilSharpness ¶
func (Instance) SetSsrDepthTolerance ¶
func (Instance) SetSsrEnabled ¶
func (Instance) SetSsrFadeIn ¶
func (Instance) SetSsrFadeOut ¶
func (Instance) SetSsrMaxSteps ¶
func (Instance) SetTonemapExposure ¶
func (Instance) SetTonemapMode ¶
func (self Instance) SetTonemapMode(value ToneMapper)
func (Instance) SetTonemapWhite ¶
func (Instance) SetVolumetricFogAlbedo ¶
func (Instance) SetVolumetricFogAmbientInject ¶
func (Instance) SetVolumetricFogAnisotropy ¶
func (Instance) SetVolumetricFogDensity ¶
func (Instance) SetVolumetricFogDetailSpread ¶
func (Instance) SetVolumetricFogEmission ¶
func (Instance) SetVolumetricFogEmissionEnergy ¶
func (Instance) SetVolumetricFogEnabled ¶
func (Instance) SetVolumetricFogGiInject ¶
func (Instance) SetVolumetricFogLength ¶
func (Instance) SetVolumetricFogSkyAffect ¶
func (Instance) SetVolumetricFogTemporalReprojectionAmount ¶
func (Instance) SetVolumetricFogTemporalReprojectionEnabled ¶
func (Instance) SkyCustomFov ¶
func (Instance) SkyRotation ¶
func (Instance) SsaoAoChannelAffect ¶
func (Instance) SsaoDetail ¶
func (Instance) SsaoEnabled ¶
func (Instance) SsaoHorizon ¶
func (Instance) SsaoIntensity ¶
func (Instance) SsaoLightAffect ¶
func (Instance) SsaoRadius ¶
func (Instance) SsaoSharpness ¶
func (Instance) SsilEnabled ¶
func (Instance) SsilIntensity ¶
func (Instance) SsilNormalRejection ¶
func (Instance) SsilRadius ¶
func (Instance) SsilSharpness ¶
func (Instance) SsrDepthTolerance ¶
func (Instance) SsrEnabled ¶
func (Instance) SsrFadeOut ¶
func (Instance) SsrMaxSteps ¶
func (Instance) TonemapExposure ¶
func (Instance) TonemapMode ¶
func (self Instance) TonemapMode() ToneMapper
func (Instance) TonemapWhite ¶
func (Instance) VolumetricFogAlbedo ¶
func (Instance) VolumetricFogAmbientInject ¶
func (Instance) VolumetricFogAnisotropy ¶
func (Instance) VolumetricFogDensity ¶
func (Instance) VolumetricFogDetailSpread ¶
func (Instance) VolumetricFogEmission ¶
func (Instance) VolumetricFogEmissionEnergy ¶
func (Instance) VolumetricFogEnabled ¶
func (Instance) VolumetricFogGiInject ¶
func (Instance) VolumetricFogLength ¶
func (Instance) VolumetricFogSkyAffect ¶
func (Instance) VolumetricFogTemporalReprojectionAmount ¶
func (Instance) VolumetricFogTemporalReprojectionEnabled ¶
type ReflectionSource ¶
type ReflectionSource int //gd:Environment.ReflectionSource
const ( /*Use the background for reflections.*/ ReflectionSourceBg ReflectionSource = 0 /*Disable reflections. This provides a slight performance boost over other options.*/ ReflectionSourceDisabled ReflectionSource = 1 /*Use the [Sky] for reflections regardless of what the background is.*/ ReflectionSourceSky ReflectionSource = 2 )
type SDFGIYScale ¶
type SDFGIYScale int //gd:Environment.SDFGIYScale
const ( /*Use 50% scale for SDFGI on the Y (vertical) axis. SDFGI cells will be twice as short as they are wide. This allows providing increased GI detail and reduced light leaking with thin floors and ceilings. This is usually the best choice for scenes that don't feature much verticality.*/ SdfgiYScale50Percent SDFGIYScale = 0 /*Use 75% scale for SDFGI on the Y (vertical) axis. This is a balance between the 50% and 100% SDFGI Y scales.*/ SdfgiYScale75Percent SDFGIYScale = 1 /*Use 100% scale for SDFGI on the Y (vertical) axis. SDFGI cells will be as tall as they are wide. This is usually the best choice for highly vertical scenes. The downside is that light leaking may become more noticeable with thin floors and ceilings.*/ SdfgiYScale100Percent SDFGIYScale = 2 )
type ToneMapper ¶
type ToneMapper int //gd:Environment.ToneMapper
const ( /*Does not modify color data, resulting in a linear tonemapping curve which unnaturally clips bright values, causing bright lighting to look blown out. The simplest and fastest tonemapper.*/ ToneMapperLinear ToneMapper = 0 /*A simple tonemapping curve that rolls off bright values to prevent clipping. This results in an image that can appear dull and low contrast. Slower than [constant TONE_MAPPER_LINEAR]. [b]Note:[/b] When [member tonemap_white] is left at the default value of [code]1.0[/code], [constant TONE_MAPPER_REINHARDT] produces an identical image to [constant TONE_MAPPER_LINEAR].*/ ToneMapperReinhardt ToneMapper = 1 /*Uses a film-like tonemapping curve to prevent clipping of bright values and provide better contrast than [constant TONE_MAPPER_REINHARDT]. Slightly slower than [constant TONE_MAPPER_REINHARDT].*/ ToneMapperFilmic ToneMapper = 2 /*Uses a high-contrast film-like tonemapping curve and desaturates bright values for a more realistic appearance. Slightly slower than [constant TONE_MAPPER_FILMIC]. [b]Note:[/b] This tonemapping operator is called "ACES Fitted" in Godot 3.x.*/ ToneMapperAces ToneMapper = 3 /*Uses a film-like tonemapping curve and desaturates bright values for a more realistic appearance. Better than other tonemappers at maintaining the hue of colors as they become brighter. The slowest tonemapping option. [b]Note:[/b] [member tonemap_white] is fixed at a value of [code]16.29[/code], which makes [constant TONE_MAPPER_AGX] unsuitable for use with the Mobile rendering method.*/ ToneMapperAgx ToneMapper = 4 )