Show / Hide Table of Contents

Class FusMaterialBase

Material definition. If contained within a node, the node's (and potentially child node's) geometry is rendered with the specifies material. This base material does not contain any information about specular reflection calculation.

Inheritance
System.Object
FusComponent
FusMaterialBase
FusMaterialBRDF
FusMaterialDiffuseBRDF
FusMaterialGlossyBRDF
FusMaterialStandard
Implements
IComponent
System.IEquatable<FusMaterialBase>
Inherited Members
FusComponent.Name
FusComponent.Active
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 FusMaterialBase : FusComponent, IComponent, IEquatable<FusMaterialBase>

Fields

Albedo

The albedo channel.

Declaration
public AlbedoChannel Albedo
Field Value
Type Description
AlbedoChannel

Emissive

The emissive channel.

Declaration
public AlbedoChannel Emissive
Field Value
Type Description
AlbedoChannel

NormalMap

The normal map channel.

Declaration
public NormapMapChannel NormalMap
Field Value
Type Description
NormapMapChannel

Properties

HasAlbedoChannel

Gets a value indicating whether this instance has an albedo channel.

Declaration
public bool HasAlbedoChannel { get; }
Property Value
Type Description
System.Boolean

true if this instance has an albedo channel; otherwise, false.

HasEmissiveChannel

Gets a value indicating whether this instance has an emissive channel.

Declaration
public bool HasEmissiveChannel { get; }
Property Value
Type Description
System.Boolean

true if this instance has an emissive channel; otherwise, false.

HasNormalMapChannel

Gets a value indicating whether this instance has a normal map channel.

Declaration
public bool HasNormalMapChannel { get; }
Property Value
Type Description
System.Boolean

true if this instance has a normal map channel; otherwise, false.

Methods

Equals(FusMaterialBase)

Indicates whether the NormapMapChannel is equal to another one.

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

The NormapMapChannel to compare with this one.

Returns
Type Description
System.Boolean

true if the current NormapMapChannel 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(FusMaterialBase, FusMaterialBase)

Compares two instances for equality.

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

The first instance.

FusMaterialBase rhs

The second instance.

Returns
Type Description
System.Boolean

True, if left does equal right; false otherwise.

Inequality(FusMaterialBase, FusMaterialBase)

Compares two instances for inequality.

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

The first instance.

FusMaterialBase rhs

The second instance.

Returns
Type Description
System.Boolean

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

Implements

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