Table of Contents

Class CubemapRendererBase

Namespace
Stride.Rendering.Skyboxes
Assembly
Stride.Engine.dll
public abstract class CubemapRendererBase : IDisposable
Inheritance
CubemapRendererBase
Implements
Derived
Extension Methods

Constructors

CubemapRendererBase(GraphicsDevice, int, PixelFormat, bool)

public CubemapRendererBase(GraphicsDevice device, int outputSize, PixelFormat outputFormat, bool needDepthStencil)

Parameters

device GraphicsDevice
outputSize int
outputFormat PixelFormat
needDepthStencil bool

Fields

Camera

public readonly CameraComponent Camera

Field Value

CameraComponent

OutputTextureFormat

protected readonly PixelFormat OutputTextureFormat

Field Value

PixelFormat

OutputTextureSize

protected readonly int OutputTextureSize

Field Value

int

Properties

DrawContext

public RenderDrawContext DrawContext { get; protected set; }

Property Value

RenderDrawContext

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()

Draw(Vector3, Texture)

Render scene from a given position to a cubemap.

public void Draw(Vector3 position, Texture cubeTexture)

Parameters

position Vector3
cubeTexture Texture

DrawImpl()

protected abstract void DrawImpl()

GenerateCubemap(CubemapRendererBase, Vector3)

public static Texture GenerateCubemap(CubemapRendererBase cubemapRenderer, Vector3 position)

Parameters

cubemapRenderer CubemapRendererBase
position Vector3

Returns

Texture