Show / Hide Table of Contents

Class SurfaceEffectPointCloud

SurfaceEffectBase for Rendering Point Clouds.

Inheritance
System.Object
SceneComponent
Effect
SurfaceEffectBase
SurfaceEffect
SurfaceEffectPointCloud
Implements
IComponent
System.IDisposable
Inherited Members
SurfaceEffect.ColorMode
SurfaceEffectBase.Version
SurfaceEffectBase.Pi
SurfaceEffectBase.Precision
SurfaceEffectBase.SurfaceInput
SurfaceEffectBase.SurfaceOutput
SurfaceEffectBase.SurfVaryingFrag
SurfaceEffectBase.SurfVaryingVert
SurfaceEffectBase.SurfOutFragMethod
SurfaceEffectBase.SurfOutVertMethod
SurfaceEffectBase.UvIn
SurfaceEffectBase.UvOut
SurfaceEffectBase.VertColorIn
SurfaceEffectBase.VertColorOut
SurfaceEffectBase.VertColor1In
SurfaceEffectBase.VertColor1Out
SurfaceEffectBase.VertColor2In
SurfaceEffectBase.VertColor2Out
SurfaceEffectBase.TBNIn
SurfaceEffectBase.TBNOut
SurfaceEffectBase.VertIn
SurfaceEffectBase.HandleFieldsAndProps()
SurfaceEffectBase.PropertyChangedHandler(Object, SurfaceEffectEventArgs, String)
Effect.UniformParameters
Effect.RendererStates
Effect.EffectChanged
Effect.EffectManagerEventArgs
Effect.SessionUniqueIdentifier
Effect.SetFxParam<T>(String, T)
Effect.SetFxParam<T>(Int32, T)
Effect.GetFxParam<T>(String)
Effect.Equals(Object)
Effect.Equals(Effect)
Effect.GetHashCode()
Effect.Dispose()
Effect.Dispose(Boolean)
SceneComponent.Name
SceneComponent.Active
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core.Effects
Assembly: Fusee.Engine.Core.dll
Syntax
public class SurfaceEffectPointCloud : SurfaceEffect, IComponent, IDisposable

Constructors

SurfaceEffectPointCloud(RenderStateSet, Boolean)

Creates a new instance of type PointCloudSurfaceEffect.

Declaration
public SurfaceEffectPointCloud(RenderStateSet rendererStates = null, bool doRenderInstanced = false)
Parameters
Type Name Description
RenderStateSet rendererStates

The renderer state set for this effect.

System.Boolean doRenderInstanced

Use instanced rendering for visualizing the point cloud?

SurfaceEffectPointCloud(List<String>, List<String>, RenderStateSet, Boolean)

Creates a new instance of type PointCloudSurfaceEffect.

Declaration
public SurfaceEffectPointCloud(List<string> surfOutVertBody, List<string> surfOutFragBody = null, RenderStateSet rendererStates = null, bool doRenderInstanced = false)
Parameters
Type Name Description
System.Collections.Generic.List<System.String> surfOutVertBody

List of shader code lines that make up the vertex shader "Change Surf" method body.

System.Collections.Generic.List<System.String> surfOutFragBody

List of shader code lines that make up the fragment shader "Change Surf" method body.

RenderStateSet rendererStates

The renderer state set for this effect.

System.Boolean doRenderInstanced

Use instanced rendering for visualizing the point cloud?

Fields

PointCoordIn

Alternative to gl_PointSize

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Property)]
public readonly string PointCoordIn
Field Value
Type Description
System.String

PointCoordOut

Alternative to gl_PointSize

Declaration
[FxShader(ShaderCategory.Vertex)]
[FxShard(ShardCategory.Property)]
public readonly string PointCoordOut
Field Value
Type Description
System.String

ViewPosIn

The in variable for the view position in the fragment shader. Used for paraboloid shaped points.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Property)]
public readonly string ViewPosIn
Field Value
Type Description
System.String

ViewPosOut

The out variable for the view position in the vertex shader. Used for paraboloid shaped points.

Declaration
[FxShader(ShaderCategory.Vertex)]
[FxShard(ShardCategory.Property)]
public readonly string ViewPosOut
Field Value
Type Description
System.String

WorldSpacePointRadIn

The in variable for the point radius in the fragment shader. Used for paraboloid shaped points.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Property)]
public readonly string WorldSpacePointRadIn
Field Value
Type Description
System.String

WorldSpacePointRadOut

The out variable for the point radius in the vertex shader. Used for paraboloid shaped points.

Declaration
[FxShader(ShaderCategory.Vertex)]
[FxShard(ShardCategory.Property)]
public readonly string WorldSpacePointRadOut
Field Value
Type Description
System.String

Properties

DepthTex

The depth texture, used for eye dome lighting.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Uniform)]
public WritableTexture DepthTex { get; set; }
Property Value
Type Description
WritableTexture

EDLNeighbourPixels

Determines how many neighboring pixels shall be used in the eye dome lighting calculation.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Uniform)]
public int EDLNeighbourPixels { get; set; }
Property Value
Type Description
System.Int32

EDLStrength

The shader shard containing the strength of the eye dome lighting.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Uniform)]
public float EDLStrength { get; set; }
Property Value
Type Description
System.Single

PointShape

The shader shard containing the Point Size.

Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Uniform)]
public int PointShape { get; set; }
Property Value
Type Description
System.Int32

PointSize

Shape of the points.

Declaration
[FxShader(ShaderCategory.Vertex)]
[FxShard(ShardCategory.Uniform)]
public int PointSize { get; set; }
Property Value
Type Description
System.Int32

PointSizeMode

Shape of the points.

Declaration
[FxShader(ShaderCategory.Vertex)]
[FxShard(ShardCategory.Uniform)]
public int PointSizeMode { get; set; }
Property Value
Type Description
System.Int32

Methods

CalculatePointShape(Boolean)

Fragment Shader Shard for linearizing a depth value using the clipping planes of the current camera.

Declaration
protected static List<string> CalculatePointShape(bool doRenderInstanced)
Parameters
Type Name Description
System.Boolean doRenderInstanced
Returns
Type Description
System.Collections.Generic.List<System.String>

CalculateVaryings(Boolean)

Declaration
protected static List<string> CalculateVaryings(bool doRenderInstanced)
Parameters
Type Name Description
System.Boolean doRenderInstanced
Returns
Type Description
System.Collections.Generic.List<System.String>

Implements

IComponent
System.IDisposable
Generated by DocFX
GitHub Repo
Back to top