Skip to content

Class RenderScene

Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll

One placed in the world, with the lights and sky it is lit with. The lights can be changed every frame. The model's own coordinates (instance transforms, light positions, bounds) are relative to the scene's , a position in the double-precision world; every frame the renderer turns them into offsets from the camera, so a scene can be anywhere in the world. For many models, or for models placed by entities, see .

public sealed class RenderScene : IDisposable

Inheritance

object ← RenderScene

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

AmbientGround

public Vector3 AmbientGround { get; set; }

Property Value

Vector3

AmbientSky

public Vector3 AmbientSky { get; set; }

Property Value

Vector3

BoundsMax

public Vector3 BoundsMax { get; }

Property Value

Vector3

BoundsMin

public Vector3 BoundsMin { get; }

Property Value

Vector3

Lights

Point and spot lights, relative to . Edit the list between frames to move or add lights.

public List<LightData> Lights { get; }

Property Value

List<LightData>

MeshCount

public int MeshCount { get; }

Property Value

int

Model

The model this scene shows, which it owns.

public GpuModel Model { get; }

Property Value

GpuModel

Name

public string Name { get; }

Property Value

string

Origin

Where the model's origin is in the world. Set it to move the whole scene; the model's coordinates stay relative to it.

public Double3 Origin { get; set; }

Property Value

Double3

SunColor

public Vector3 SunColor { get; set; }

Property Value

Vector3

SunDirection

The direction toward the sun (unit length), and its color times illuminance. Zero color turns the sun off.

public Vector3 SunDirection { get; set; }

Property Value

Vector3

Methods

Dispose()

Frees the model. Draw frames that use the scene first (the GPU is waited for).

public void Dispose()