Show / Hide Table of Contents

Class FragProperties

Collection of shader code strings, describing possible in, out and uniform properties of a fragment shader.

Inheritance
System.Object
FragProperties
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 FragProperties

Fields

FixedNumberLightArray

Creates the "allLights" uniform array, as it is used in forward rendering.

Declaration
public static string FixedNumberLightArray
Field Value
Type Description
System.String

OutColorName

The standard name for the fragment shader color output.

Declaration
public static string OutColorName
Field Value
Type Description
System.String

Methods

ColorOut()

Creates a single color (vec4) out parameter.

Declaration
public static string ColorOut()
Returns
Type Description
System.String

DeferredLightAndShadowUniforms(Light, Boolean, Int32)

Creates the uniforms for the deferred lighting pass for one light.

Declaration
public static string DeferredLightAndShadowUniforms(Light lc, bool isCascaded, int numberOfCascades)
Parameters
Type Name Description
Light lc

The light component, needed to decide if we have a Shadow Cube Map or a standard shadow map.

System.Boolean isCascaded

If cascaded shadow mapping is used, this should be set to true.

System.Int32 numberOfCascades

If cascaded shadow mapping is used this is the number of cascades.

Returns
Type Description
System.String

DeferredTextureUniforms()

Creates the uniform texture parameters for the lighting pass, as used in deferred rendering.

Declaration
public static string DeferredTextureUniforms()
Returns
Type Description
System.String

GBufferOut()

Creates the out parameters for rendering into a G-Buffer object.

Declaration
public static string GBufferOut()
Returns
Type Description
System.String
Generated by DocFX
GitHub Repo
Back to top