Show / Hide Table of Contents

Class BRDFChannel

Contains information needed for a physically-based lighting calculation using a bidirectional reflectance distribution function.

Inheritance
System.Object
BRDFChannel
Implements
System.IEquatable<BRDFChannel>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Serialization.V1
Assembly: Fusee.Serialization.dll
Syntax
public class BRDFChannel : IEquatable<BRDFChannel>

Fields

IOR

The index of refraction.

Declaration
public float IOR
Field Value
Type Description
System.Single

Metallic

Blends between a non-metallic and metallic material model. Must be a value between 0 and 1. 0: The material is dielectric: has a diffuse and a non-tinted specular component. 1: The material is metallic: has no diffuse and a specular component whose color is tinted by the materials base color.

Declaration
public float Metallic
Field Value
Type Description
System.Single

Roughness

Specifies microfacet roughness of the surface for diffuse and specular reflection.

Declaration
public float Roughness
Field Value
Type Description
System.Single

Specular

Amount of dielectric specular reflection. Must be a value between 0 and 1.

Declaration
public float Specular
Field Value
Type Description
System.Single

Subsurface

Mix between diffuse and subsurface scattering.

Declaration
public float Subsurface
Field Value
Type Description
System.Single

SubsurfaceColor

Mix between diffuse and subsurface scattering.

Declaration
public float3 SubsurfaceColor
Field Value
Type Description
float3

Methods

Equals(BRDFChannel)

Indicates whether the MatChannelContainer is equal to another one.

Declaration
public bool Equals(BRDFChannel other)
Parameters
Type Name Description
BRDFChannel other

The MatChannelContainer to compare with this one.

Returns
Type Description
System.Boolean

true if the current MatChannelContainer is equal to the other; otherwise, false.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare to.

Returns
Type Description
System.Boolean

True if the instances are equal; false otherwise.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Returns the hash for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

Operators

Equality(BRDFChannel, BRDFChannel)

Compares two instances for equality.

Declaration
public static bool operator ==(BRDFChannel lhs, BRDFChannel rhs)
Parameters
Type Name Description
BRDFChannel lhs

The first instance.

BRDFChannel rhs

The second instance.

Returns
Type Description
System.Boolean

True, if left does equal right; false otherwise.

Inequality(BRDFChannel, BRDFChannel)

Compares two instances for inequality.

Declaration
public static bool operator !=(BRDFChannel lhs, BRDFChannel rhs)
Parameters
Type Name Description
BRDFChannel lhs

The first instance.

BRDFChannel rhs

The second instance.

Returns
Type Description
System.Boolean

True, if left does not equal right; false otherwise.

Implements

System.IEquatable<T>
Generated by DocFX
GitHub Repo
Back to top