Class SurfaceEffect
The default Effect, that is used if no other Effect is found. Provides properties to change the Diffuse Color, Specular Color, Specular Intensity and Specular Shininess.
Inheritance
System.Object
SurfaceEffect
Inherited Members
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 SurfaceEffect : SurfaceEffectBase, IComponent, IDisposable
Constructors
SurfaceEffect(SurfaceEffectInput, RenderFlags, List<String>, List<String>, RenderStateSet)
Creates a new instance of type DefaultSurfaceEffect.
Declaration
public SurfaceEffect(SurfaceEffectInput input, RenderFlags renderMod = RenderFlags.None, List<string> surfOutVertBody = null, List<string> surfOutFragBody = null, RenderStateSet rendererStates = null)
Parameters
Type | Name | Description |
---|---|---|
SurfaceEffectInput | input | See SurfaceInput. |
RenderFlags | renderMod | Provides a flag that may adjust the rendering according to |
System.Collections.Generic.List<System.String> | surfOutVertBody | The method body for the SurfOutVertMethod |
System.Collections.Generic.List<System.String> | surfOutFragBody | The method body for the SurfOutFragMethod |
RenderStateSet | rendererStates | The renderer state set for this effect. |
Properties
ColorMode
Specify ColorMode for lighting calculation.
Declaration
[FxShader(ShaderCategory.Fragment)]
[FxShard(ShardCategory.Uniform)]
public int ColorMode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
System.IDisposable