MaterialSpecularMicrofacetEnvironmentGGXPolynomial Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
Environment function for Schlick fresnel, Smith-Schlick GGX visibility and GGX normal distribution.
System.Object →
MaterialSpecularMicrofacetEnvironmentGGXPolynomial
Derived from MaterialSpecularMicrofacetEnvironmentGGXPolynomial:
[DataContract("MaterialSpecularMicrofacetEnvironmentGGXPolynomial")]
[Display("GGX+Schlick+SchlickGGX (Polynomial)", null)]
public class MaterialSpecularMicrofacetEnvironmentGGXPolynomial : IMaterialSpecularMicrofacetEnvironmentFunction, IMaterialSpecularMicrofacetFunction
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.
Name | Description | |
---|---|---|
Methods | ||
Equals(Object) | ||
Generate(MaterialGeneratorContext) | ||
GetHashCode() |
Methods
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
Generate(MaterialGeneratorContext)
public ShaderSource Generate(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |
Returns
Type | Description |
---|---|
ShaderSource |
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()