Table of Contents

Class MaterialSpecularMicrofacetEnvironmentGGXLUT

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll

Environment function for Schlick fresnel, Smith-Schlick GGX visibility and GGX normal distribution.

[DataContract("MaterialSpecularMicrofacetEnvironmentGGXLUT")]
[Display("GGX+Schlick+SchlickGGX (LUT)", null)]
public class MaterialSpecularMicrofacetEnvironmentGGXLUT : IMaterialSpecularMicrofacetEnvironmentFunction, IMaterialSpecularMicrofacetFunction
Inheritance
MaterialSpecularMicrofacetEnvironmentGGXLUT
Implements

Remarks

Based on https://knarkowicz.wordpress.com/2014/12/27/analytical-dfg-term-for-ibl/. Note: their glossiness-roughness conversion formula is not same as ours, this will need to be recomputed.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Generate(MaterialGeneratorContext)

Generates the shader class source used for the shader composition.

public ShaderSource Generate(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

Returns

ShaderSource

ShaderSource.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.