Class FragShards
Contains pre-defined Shader Shards = content of the Fragment Shader's method that lets us change values of the "out"-struct that is used for the lighting calculation.
Inheritance
System.Object
FragShards
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.ShaderShards.Fragment
Assembly: Fusee.Engine.Core.dll
Syntax
public static class FragShards
Methods
SurfOutBody(SurfaceEffectInput)
Returns a default method body for a given lighting calculation.
The surface input class. Needed to receive the shading model and texture setup.Declaration
public static List<string> SurfOutBody(SurfaceEffectInput surfInput)
Parameters
| Type | Name | Description |
|---|---|---|
| SurfaceEffectInput | surfInput |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
SurfOutBody(ShadingModel, TextureSetup)
Returns a default method body for a given lighting calculation.
Declaration
public static List<string> SurfOutBody(ShadingModel shadingModel, TextureSetup texSetup)
Parameters
| Type | Name | Description |
|---|---|---|
| ShadingModel | shadingModel | |
| TextureSetup | texSetup |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |