Class SurfaceEffectPointCloud
SurfaceEffectBase for Rendering Point Clouds.
Inheritance
Inherited Members
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> |