Class Skybox
Represents a skybox element in a 3D environment.
Inherited Members
Namespace: Genesis.Core.GameElements
Assembly: Genesis.dll
Syntax
public class Skybox : Element3D
Constructors
Skybox(string, string, Vec3, Vec3, Vec3)
Initializes a new instance of the Skybox class with specified name, texture path, location, rotation, and scale.
Declaration
public Skybox(string name, string path, Vec3 location, Vec3 rotation, Vec3 scale)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the skybox. |
string | path | The path to the texture for the skybox. |
Vec3 | location | The initial location of the skybox. |
Vec3 | rotation | The initial rotation of the skybox. |
Vec3 | scale | The initial scale of the skybox. |
Methods
OnUpdate(Game, IRenderDevice)
Updates the skybox position based on the selected scene's camera location.
Declaration
public override void OnUpdate(Game game, IRenderDevice renderDevice)
Parameters
Type | Name | Description |
---|---|---|
Game | game | The game instance. |
IRenderDevice | renderDevice | The render device used for rendering. |