Class RenderTargetBlazor
Provides Blazor-specific overrides to the RenderTargets Set[..]Tex() methods.
Inherited Members
Namespace: Fusee.Engine.Imp.Graphics.Blazor
Assembly: Fusee.Engine.Imp.Graphics.Blazor.dll
Syntax
public class RenderTargetBlazor : RenderTarget, IRenderTarget, IDisposable
Constructors
RenderTargetBlazor(TexRes)
Creates a new instance of type RenderTargetBlazor.
Declaration
public RenderTargetBlazor(TexRes texRes)
Parameters
Type | Name | Description |
---|---|---|
TexRes | texRes | The TexRes of this render target. |
Methods
SetAlbedoTex()
Generates a albedo and specular (alpha channel) texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetAlbedoTex()
Overrides
SetDepthTex(TextureCompareMode, Compare)
Generates a depth texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetDepthTex(TextureCompareMode compareMode = TextureCompareMode.None, Compare compareFunc = Compare.Less)
Parameters
Type | Name | Description |
---|---|---|
TextureCompareMode | compareMode | |
Compare | compareFunc |
Overrides
SetEmissiveTex()
Generates a emissive texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetEmissiveTex()
Overrides
SetNormalTex()
Generates a normal texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetNormalTex()
Overrides
SetPositionTex()
Generates a position texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetPositionTex()
Overrides
SetSpecularTex()
Generates a specular texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetSpecularTex()
Overrides
SetSSAOTex()
Generates a SSAO texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetSSAOTex()
Overrides
SetSubsurfaceTex()
Generates a subsurface texture and sets it at the correct position in the RenderTextures Array.
Declaration
public override void SetSubsurfaceTex()
Overrides
SetTexture(IWritableTexture, RenderTargetTextureTypes)
Sets a RenderTexture into the correct position in the RederTexture array.
Declaration
public override void SetTexture(IWritableTexture src, RenderTargetTextureTypes tex)
Parameters
Type | Name | Description |
---|---|---|
IWritableTexture | src | The source RenderTexture. |
RenderTargetTextureTypes | tex | The type of the texture. |