Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SubsurfaceScatteringBlur Class

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

    [DataContract("SubsurfaceScatteringBlur")]
    [Display("Subsurface Scattering Blur", null)]
    public class SubsurfaceScatteringBlur : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffectRenderer, IImageEffect, IGraphicsRenderer, IGraphicsRendererCore, IDisposable, ISharedRenderer, IIdentifiable, IGraphicsRendererBase
    Name Description
    Fields
    MaxMaterialCount
    Properties
    ActiveRenderMode
    FollowSurface
    Id

    Gets the id of this instance

    JitterKernelSize
    NumberOfPasses
    Methods
    Draw(RenderDrawContext, Texture, Texture, Texture, Texture)
    DrawCore(RenderDrawContext)
    Finalize()
    InitializeCore()
    SetScatteringKernel(UInt32, Vector4[])
    SetScatteringWidth(UInt32, Single)
    | Improve this Doc View Source

    Fields


    MaxMaterialCount

    public const uint MaxMaterialCount = 256U
    Field Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Properties


    ActiveRenderMode

    [DataMember(60)]
    [Display("Render mode", null)]
    public SubsurfaceScatteringBlur.RenderMode ActiveRenderMode { get; set; }
    Property Value
    Type Description
    SubsurfaceScatteringBlur.RenderMode

    FollowSurface

    [DataMember(20)]
    [Display("Follow surface", null)]
    public bool FollowSurface { get; set; }
    Property Value
    Type Description
    System.Boolean

    Id

    Gets the id of this instance

    [DataMember(-100)]
    [Display(null, null, Browsable = false)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    System.Guid

    JitterKernelSize

    [DataMember(50)]
    [Display("Jitter Kernel Size", null)]
    public bool JitterKernelSize { get; set; }
    Property Value
    Type Description
    System.Boolean

    NumberOfPasses

    [DataMember(40)]
    [DataMemberRange(1, 10, 1, 1, 0)]
    [Display("Number of passes", null)]
    public int NumberOfPasses { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    Draw(RenderDrawContext, Texture, Texture, Texture, Texture)

    public void Draw(RenderDrawContext context, Texture color, Texture materialIndex, Texture depthStencil, Texture output)
    Parameters
    Type Name Description
    RenderDrawContext context
    Texture color
    Texture materialIndex
    Texture depthStencil
    Texture output

    DrawCore(RenderDrawContext)

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

    Finalize()

    protected void Finalize()

    InitializeCore()

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

    SetScatteringKernel(UInt32, Vector4[])

    public void SetScatteringKernel(uint materialIndex, Vector4[] scatteringKernel)
    Parameters
    Type Name Description
    System.UInt32 materialIndex
    Vector4[] scatteringKernel

    SetScatteringWidth(UInt32, Single)

    public void SetScatteringWidth(uint materialIndex, float width)
    Parameters
    Type Name Description
    System.UInt32 materialIndex
    System.Single width

    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.Destroy()
    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