Class PanoramaSkyMaterial
- Namespace
- Godot
- Assembly
- GodotSharp.dll
A resource referenced in a Sky that is used to draw a background. PanoramaSkyMaterial functions similar to skyboxes in other engines, except it uses an equirectangular sky map instead of a Cubemap.
Using an HDR panorama is strongly recommended for accurate, high-quality reflections. Godot supports the Radiance HDR (.hdr
) and OpenEXR (.exr
) image formats for this purpose.
You can use this tool to convert a cubemap to an equirectangular sky map.
public class PanoramaSkyMaterial : Material, IDisposable
- Inheritance
-
PanoramaSkyMaterial
- Implements
- Inherited Members
Constructors
PanoramaSkyMaterial()
public PanoramaSkyMaterial()
Properties
Filter
A boolean value to determine if the background texture should be filtered or not.
public bool Filter { get; set; }
Property Value
Panorama
Texture2D to be applied to the PanoramaSkyMaterial.
public Texture2D Panorama { get; set; }
Property Value
Methods
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.