Show / Hide Table of Contents

Class SurfaceOut

Contains all needed information to define the SurfaceOutput.

Inheritance
System.Object
SurfaceOut
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
Assembly: Fusee.Engine.Core.dll
Syntax
public static class SurfaceOut

Methods

GetChangeSurfFragMethod(List<String>, Type)

Returns the GLSL method that modifies the values of the SurfaceOutput struct.

Declaration
public static string GetChangeSurfFragMethod(List<string> methodBody, Type inputType)
Parameters
Type Name Description
System.Collections.Generic.List<System.String> methodBody

User-written shader code for modifying.

System.Type inputType

The type of the SurfaceInput struct.

Returns
Type Description
System.String

GetChangeSurfVertMethod(List<String>, ShadingModel)

Returns the GLSL method that modifies the values of the SurfaceOutput struct.

Declaration
public static string GetChangeSurfVertMethod(List<string> methodBody, ShadingModel setup)
Parameters
Type Name Description
System.Collections.Generic.List<System.String> methodBody

User-written shader code for modifying.

ShadingModel setup

The lighting setup.

Returns
Type Description
System.String

GetShadingModelShards(ShadingModel)

Returns the GLSL default constructor and declaration of the SurfaceOutput struct.

Declaration
public static ShadingModelShards GetShadingModelShards(ShadingModel setup)
Parameters
Type Name Description
ShadingModel setup

The ShadingModel that decides what the appropriate struct is.

Returns
Type Description
ShadingModelShards
Generated by DocFX
GitHub Repo
Back to top