Class SurfaceEffectInput
Class that can be used to collect properties that will serve as uniforms for a effect that does no lighting calculation. In this case it only contains the albedo color.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
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 abstract class SurfaceEffectInput : INotifyValueChange<SurfaceEffectEventArgs>
Properties
Albedo
The albedo color.
Declaration
public float4 Albedo { get; set; }
Property Value
Type | Description |
---|---|
float4 |
ShadingModel
The ShadingModel, appropriate for this Input.
Declaration
public ShadingModel ShadingModel { get; protected set; }
Property Value
Type | Description |
---|---|
ShadingModel |
TextureSetup
The TextureSetup.
Declaration
public TextureSetup TextureSetup { get; set; }
Property Value
Type | Description |
---|---|
TextureSetup |
Methods
NotifyValueChanged(Type, String, Object)
This method needs to be called by the setter of each property. A SurfaceEffectBase can register SetFxParam<T>(String, T) to the PropertyChanged event.
Declaration
public void NotifyValueChanged(Type type, string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
System.Object | value | The value of the property. |
Events
PropertyChanged
Event to notify a SurfaceEffectBase about a changed value of a property of this class.
Declaration
public event EventHandler<SurfaceEffectEventArgs> PropertyChanged
Event Type
Type | Description |
---|---|
System.EventHandler<SurfaceEffectEventArgs> |