Documentation
¶
Overview ¶
Package ProceduralSkyMaterial provides methods for working with ProceduralSkyMaterial object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsMaterial() Material.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsProceduralSkyMaterial() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) EnergyMultiplier() Float.X
- func (self Instance) GroundBottomColor() Color.RGBA
- func (self Instance) GroundCurve() Float.X
- func (self Instance) GroundEnergyMultiplier() Float.X
- func (self Instance) GroundHorizonColor() Color.RGBA
- func (self Instance) SetEnergyMultiplier(value Float.X)
- func (self Instance) SetGroundBottomColor(value Color.RGBA)
- func (self Instance) SetGroundCurve(value Float.X)
- func (self Instance) SetGroundEnergyMultiplier(value Float.X)
- func (self Instance) SetGroundHorizonColor(value Color.RGBA)
- func (self Instance) SetSkyCover(value [1]gdclass.Texture2D)
- func (self Instance) SetSkyCoverModulate(value Color.RGBA)
- func (self Instance) SetSkyCurve(value Float.X)
- func (self Instance) SetSkyEnergyMultiplier(value Float.X)
- func (self Instance) SetSkyHorizonColor(value Color.RGBA)
- func (self Instance) SetSkyTopColor(value Color.RGBA)
- func (self Instance) SetSunAngleMax(value Float.X)
- func (self Instance) SetSunCurve(value Float.X)
- func (self Instance) SetUseDebanding(value bool)
- func (self Instance) SkyCover() [1]gdclass.Texture2D
- func (self Instance) SkyCoverModulate() Color.RGBA
- func (self Instance) SkyCurve() Float.X
- func (self Instance) SkyEnergyMultiplier() Float.X
- func (self Instance) SkyHorizonColor() Color.RGBA
- func (self Instance) SkyTopColor() Color.RGBA
- func (self Instance) SunAngleMax() Float.X
- func (self Instance) SunCurve() Float.X
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) UseDebanding() bool
- func (self Instance) Virtual(name string) reflect.Value
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 Instance ¶
type Instance [1]gdclass.ProceduralSkyMaterial
[ProceduralSkyMaterial] provides a way to create an effective background quickly by defining procedural parameters for the sun, the sky and the ground. The sky and ground are defined by a main color, a color at the horizon, and an easing curve to interpolate between them. Suns are described by a position in the sky, a color, and a max angle from the sun at which the easing curve ends. The max angle therefore defines the size of the sun in the sky. [ProceduralSkyMaterial] supports up to 4 suns, using the color, and energy, direction, and angular distance of the first four [DirectionalLight3D] nodes in the scene. This means that the suns are defined individually by the properties of their corresponding [DirectionalLight3D]s and globally by [member sun_angle_max] and [member sun_curve]. [ProceduralSkyMaterial] uses a lightweight shader to draw the sky and is therefore suited for real-time updates. This makes it a great option for a sky that is simple and computationally cheap, but unrealistic. If you need a more realistic procedural option, use [PhysicalSkyMaterial].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsMaterial ¶
func (Instance) AsProceduralSkyMaterial ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted