Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LightShafts Class

    Namespace: Stride.Rendering.Images
    Assembly: Stride.Rendering.dll
    System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect → LightShafts
    Derived from LightShafts:

    [DataContract("LightShafts")]
    public class LightShafts : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Name Description
    Fields
    CurrentLightShafts

    Property key to access the current collection of System.Collections.Generic.List<T> from Tags.

    Properties
    BoundingVolumeBufferDownsampleLevel

    The amount of time the resolution is lowered for the bounding volume buffer

    LightBufferDownsampleLevel

    The number of times the resolution is lowered for the light buffer

    Methods
    Collect(RenderContext)
    Destroy()
    Draw(RenderDrawContext, Texture, Texture)
    DrawCore(RenderDrawContext)
    InitializeCore()
    | Improve this Doc View Source

    Fields


    CurrentLightShafts

    Property key to access the current collection of System.Collections.Generic.List<T> from Tags.

    public static readonly PropertyKey<List<RenderLightShaft>> CurrentLightShafts
    Field Value
    Type Description
    PropertyKey<System.Collections.Generic.List<RenderLightShaft>>
    | Improve this Doc View Source

    Properties


    BoundingVolumeBufferDownsampleLevel

    The amount of time the resolution is lowered for the bounding volume buffer

    [DataMemberRange(1, 64, 1, 1, 0)]
    public int BoundingVolumeBufferDownsampleLevel { get; set; }
    Property Value
    Type Description
    System.Int32

    LightBufferDownsampleLevel

    The number of times the resolution is lowered for the light buffer

    [DataMemberRange(1, 64, 1, 1, 0)]
    public int LightBufferDownsampleLevel { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    Collect(RenderContext)

    public void Collect(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context

    Destroy()

    protected override void Destroy()
    Overrides
    RendererCoreBase.Destroy()

    Draw(RenderDrawContext, Texture, Texture)

    public void Draw(RenderDrawContext drawContext, Texture inputDepthStencil, Texture output)
    Parameters
    Type Name Description
    RenderDrawContext drawContext
    Texture inputDepthStencil
    Texture output

    DrawCore(RenderDrawContext)

    protected override void DrawCore(RenderDrawContext context)
    Parameters
    Type Name Description
    RenderDrawContext context
    Overrides
    RendererBase.DrawCore(RenderDrawContext)

    InitializeCore()

    protected override void InitializeCore()
    Overrides
    RendererCoreBase.InitializeCore()

    Inherited Members

    ImageEffect.EnableSetRenderTargets
    ImageEffect.SetInput(Int32, Texture)
    ImageEffect.Reset()
    ImageEffect.SetOutput(Texture)
    ImageEffect.SetOutput(Texture[])
    ImageEffect.SetDepthOutput(Texture, Texture)
    ImageEffect.SetDepthOutput(Texture, Texture[])
    ImageEffect.SetViewport(Nullable<Viewport>)
    ImageEffect.PreDrawCore(RenderDrawContext)
    ImageEffect.SetRenderTargets(RenderDrawContext)
    ImageEffect.PostDrawCore(RenderDrawContext)
    ImageEffect.DisposeCreatedRenderTargetViews(RenderDrawContext)
    ImageEffect.InputCount
    ImageEffect.GetInput(Int32)
    ImageEffect.GetSafeInput(Int32)
    ImageEffect.DepthStencil
    ImageEffect.HasDepthStencilOutput
    ImageEffect.OutputCount
    ImageEffect.GetOutput(Int32)
    ImageEffect.GetSafeOutput(Int32)
    ImageEffect.NewScopedRenderTarget2D(TextureDescription)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, TextureFlags, Int32)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, MipMapCount, TextureFlags, Int32)
    DrawEffect.SamplingPattern
    DrawEffect.Parameters
    DrawEffect.Scaler
    DrawEffect.SetDefaultParameters()
    DrawEffect.Draw(RenderDrawContext, String)
    DrawEffect.Draw(RenderDrawContext, String, Object[])
    DrawEffect.ToString()
    RendererBase.Draw(RenderDrawContext)
    RendererCoreBase.Enabled
    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.Unload()
    RendererCoreBase.NewScopedBuffer(BufferDescription, PixelFormat)
    RendererCoreBase.NewScopedTypedBuffer(Int32, PixelFormat, Boolean, GraphicsResourceUsage)
    RendererCoreBase.PushScopedResource<T>(T)
    RendererCoreBase.CheckIsInDrawCore()
    RendererCoreBase.ToLoadAndUnload<T>(T)
    RendererCoreBase.PreDrawCoreInternal(RenderDrawContext)
    RendererCoreBase.EnsureContext(RenderContext)
    RendererCoreBase.PostDrawCoreInternal(RenderDrawContext)
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ImageEffectExtensions.SetInput(IImageEffect, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture, Texture)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation