PhysicalSkyMaterial

package
v0.0.0-...-2b43b64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package PhysicalSkyMaterial provides methods for working with PhysicalSkyMaterial object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsPhysicalSkyMaterial() Instance
}

type Instance

type Instance [1]gdclass.PhysicalSkyMaterial

The [PhysicalSkyMaterial] uses the Preetham analytic daylight model to draw a sky based on physical properties. This results in a substantially more realistic sky than the [ProceduralSkyMaterial], but it is slightly slower and less flexible. The [PhysicalSkyMaterial] only supports one sun. The color, energy, and direction of the sun are taken from the first [DirectionalLight3D] in the scene tree.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsMaterial

func (self Instance) AsMaterial() Material.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsPhysicalSkyMaterial

func (self Instance) AsPhysicalSkyMaterial() Instance

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) EnergyMultiplier

func (self Instance) EnergyMultiplier() Float.X

func (Instance) GroundColor

func (self Instance) GroundColor() Color.RGBA

func (Instance) MieCoefficient

func (self Instance) MieCoefficient() Float.X

func (Instance) MieColor

func (self Instance) MieColor() Color.RGBA

func (Instance) MieEccentricity

func (self Instance) MieEccentricity() Float.X

func (Instance) NightSky

func (self Instance) NightSky() [1]gdclass.Texture2D

func (Instance) RayleighCoefficient

func (self Instance) RayleighCoefficient() Float.X

func (Instance) RayleighColor

func (self Instance) RayleighColor() Color.RGBA

func (Instance) SetEnergyMultiplier

func (self Instance) SetEnergyMultiplier(value Float.X)

func (Instance) SetGroundColor

func (self Instance) SetGroundColor(value Color.RGBA)

func (Instance) SetMieCoefficient

func (self Instance) SetMieCoefficient(value Float.X)

func (Instance) SetMieColor

func (self Instance) SetMieColor(value Color.RGBA)

func (Instance) SetMieEccentricity

func (self Instance) SetMieEccentricity(value Float.X)

func (Instance) SetNightSky

func (self Instance) SetNightSky(value [1]gdclass.Texture2D)

func (Instance) SetRayleighCoefficient

func (self Instance) SetRayleighCoefficient(value Float.X)

func (Instance) SetRayleighColor

func (self Instance) SetRayleighColor(value Color.RGBA)

func (Instance) SetSunDiskScale

func (self Instance) SetSunDiskScale(value Float.X)

func (Instance) SetTurbidity

func (self Instance) SetTurbidity(value Float.X)

func (Instance) SetUseDebanding

func (self Instance) SetUseDebanding(value bool)

func (Instance) SunDiskScale

func (self Instance) SunDiskScale() Float.X

func (Instance) Turbidity

func (self Instance) Turbidity() Float.X

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) UseDebanding

func (self Instance) UseDebanding() bool

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL