Class VaryingNameDeclarations
Name declarations for varying variables (vert out, frag in). Ensures compatibility between shader shards. Use those in vert and frag files too, if you want to mix shards and complete files.
Inheritance
Inherited Members
Namespace: Fusee.Engine.Core.Effects
Assembly: Fusee.Engine.Core.dll
Syntax
public static class VaryingNameDeclarations
Fields
Bitangent
The bitangents variable name.
Declaration
public const string Bitangent = "vB"
Field Value
| Type | Description |
|---|---|
| System.String |
CameraPosition
The camera position variable name.
Declaration
public const string CameraPosition = "vCamPos"
Field Value
| Type | Description |
|---|---|
| System.String |
Color0
The vertex colors variable name.
Declaration
public static readonly string Color0
Field Value
| Type | Description |
|---|---|
| System.String |
Color1
The vertex colors variable name.
Declaration
public static readonly string Color1
Field Value
| Type | Description |
|---|---|
| System.String |
Color2
The vertex colors variable name.
Declaration
public static readonly string Color2
Field Value
| Type | Description |
|---|---|
| System.String |
ColorOut
The global color result name.
Declaration
public static readonly string ColorOut
Field Value
| Type | Description |
|---|---|
| System.String |
FragPos
The fragment position
Declaration
public static readonly string FragPos
Field Value
| Type | Description |
|---|---|
| System.String |
Normal
The vertex normal variable name.
Declaration
public const string Normal = "vNormal"
Field Value
| Type | Description |
|---|---|
| System.String |
PointCoord
Alternative to "gl_pointCoord" when using instance rendering.
Declaration
public const string PointCoord = "vPointCoord"
Field Value
| Type | Description |
|---|---|
| System.String |
Position
The vertex position variable name.
Declaration
public const string Position = "vPos"
Field Value
| Type | Description |
|---|---|
| System.String |
SurfOutVaryingName
The surface effects "out"-struct always has this variable name in the shader code.
Declaration
public const string SurfOutVaryingName = "surfOut"
Field Value
| Type | Description |
|---|---|
| System.String |
Tangent
The tangents variable name.
Declaration
public const string Tangent = "vT"
Field Value
| Type | Description |
|---|---|
| System.String |
TBN
The variable name of the TBN (Tangent, Bitangent, Normal) matrix.
Declaration
public const string TBN = "TBN"
Field Value
| Type | Description |
|---|---|
| System.String |
TextureCoordinates
The texture coordinates variable name.
Declaration
public const string TextureCoordinates = "vUv"
Field Value
| Type | Description |
|---|---|
| System.String |
ViewDirection
The view direction variable name.
Declaration
public const string ViewDirection = "vViewDir"
Field Value
| Type | Description |
|---|---|
| System.String |
ViewPos
The vertex position in view space.
Declaration
public const string ViewPos = "vViewPos"
Field Value
| Type | Description |
|---|---|
| System.String |