maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL Namespace Reference

Detailed Description

This is a simple material description to offer viewport and export support for node materials.

Functions

 MAXON_RESOURCE_DATABASE_SCOPE ("net.maxon.nodespace.exchange.bundle.viewportmaterial")
 
 MAXON_ATTRIBUTE (InternedId, TYPE, "type")
 
 MAXON_ATTRIBUTE (void, TYPE_ENUM_CONSTANT, "constant")
 
 MAXON_ATTRIBUTE (void, TYPE_ENUM_METAL, "metal")
 
 MAXON_ATTRIBUTE (void, TYPE_ENUM_DIELECTRIC, "dielectric")
 
 MAXON_ATTRIBUTE (Float, TRANSMISSIVITY, "transmissivity ")
 
 MAXON_ATTRIBUTE (Float, ALPHA, "alpha")
 
 MAXON_ATTRIBUTE (Color, BASE_COLOR, "base.color")
 
 MAXON_ATTRIBUTE (Float, BASE_COLOR_WEIGHT, "base.color_weight")
 
 MAXON_ATTRIBUTE (Vector, BASE_NORMAL, "base.normal")
 
 MAXON_ATTRIBUTE (Float, BASE_NORMAL_WEIGHT, "base.normal_weight")
 
 MAXON_ATTRIBUTE (Color, SPECULAR_COLOR, "specular.color")
 
 MAXON_ATTRIBUTE (Float, SPECULAR_COLOR_WEIGHT, "specular.color_weight")
 
 MAXON_ATTRIBUTE (Vector, SPECULAR_NORMAL, "specular.normal")
 
 MAXON_ATTRIBUTE (Float, SPECULAR_NORMAL_WEIGHT, "specular.normal_weight")
 
 MAXON_ATTRIBUTE (Float, SPECULAR_ROUGHNESS, "specular.roughness")
 
 MAXON_ATTRIBUTE (Float, SPECULAR_IOR, "specular.ior")
 
 MAXON_ATTRIBUTE (Color, EMISSION_COLOR, "emission.color")
 
 MAXON_ATTRIBUTE (Float, EMISSION_COLOR_WEIGHT, "emission.color_weight")
 
 MAXON_ATTRIBUTE (Group, GROUP_GENERAL, "group.general")
 
 MAXON_ATTRIBUTE (Group, GROUP_BASE, "group.base")
 
 MAXON_ATTRIBUTE (Group, GROUP_SPECULAR, "group.specular")
 
 MAXON_ATTRIBUTE (Group, GROUP_EMISSION, "group.emission")
 

Function Documentation

◆ MAXON_RESOURCE_DATABASE_SCOPE()

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_RESOURCE_DATABASE_SCOPE ( "net.maxon.nodespace.exchange.bundle.viewportmaterial"  )

◆ MAXON_ATTRIBUTE() [1/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( InternedId  ,
TYPE  ,
"type"   
)

Defines the type of material in the viewport:

  • Constant: a dielectric material with specular layer on top and diffuse base.
  • Metal: a metal / conductor with GGX layer.
  • Dielectric: a dielectric material with specular layer on top and diffuse base. Note that we do not support dynamic metalness.

◆ MAXON_ATTRIBUTE() [2/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( void  ,
TYPE_ENUM_CONSTANT  ,
"constant"   
)

◆ MAXON_ATTRIBUTE() [3/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( void  ,
TYPE_ENUM_METAL  ,
"metal"   
)

◆ MAXON_ATTRIBUTE() [4/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( void  ,
TYPE_ENUM_DIELECTRIC  ,
"dielectric"   
)

◆ MAXON_ATTRIBUTE() [5/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
TRANSMISSIVITY  ,
"transmissivity "   
)

Defines the transparency of dielectric materials in the range [0.0, 1.0] from not transparent to fully transparent.

◆ MAXON_ATTRIBUTE() [6/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
ALPHA  ,
"alpha"   
)

Defines the alpha of the material in the range [0.0, 1.0] from invisible to opaque.

◆ MAXON_ATTRIBUTE() [7/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Color  ,
BASE_COLOR  ,
"base.color"   
)

◆ MAXON_ATTRIBUTE() [8/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
BASE_COLOR_WEIGHT  ,
"base.color_weight"   
)

◆ MAXON_ATTRIBUTE() [9/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Vector  ,
BASE_NORMAL  ,
"base.normal"   
)

Data is expected to be in [0,1] range with the geometric normal = [0.5, 0.5, 1.0]. The tangent frame is oriented in accordance with OpenGL and Unity.

◆ MAXON_ATTRIBUTE() [10/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
BASE_NORMAL_WEIGHT  ,
"base.normal_weight"   
)

◆ MAXON_ATTRIBUTE() [11/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Color  ,
SPECULAR_COLOR  ,
"specular.color"   
)

◆ MAXON_ATTRIBUTE() [12/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
SPECULAR_COLOR_WEIGHT  ,
"specular.color_weight"   
)

◆ MAXON_ATTRIBUTE() [13/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Vector  ,
SPECULAR_NORMAL  ,
"specular.normal"   
)

Data is expected to be in [0,1] range with the geometric normal = [0.5, 0.5, 1.0]. The tangent frame is oriented in accordance with OpenGL and Unity.

◆ MAXON_ATTRIBUTE() [14/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
SPECULAR_NORMAL_WEIGHT  ,
"specular.normal_weight"   
)

◆ MAXON_ATTRIBUTE() [15/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
SPECULAR_ROUGHNESS  ,
"specular.roughness"   
)

◆ MAXON_ATTRIBUTE() [16/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
SPECULAR_IOR  ,
"specular.ior"   
)

◆ MAXON_ATTRIBUTE() [17/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Color  ,
EMISSION_COLOR  ,
"emission.color"   
)

◆ MAXON_ATTRIBUTE() [18/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Float  ,
EMISSION_COLOR_WEIGHT  ,
"emission.color_weight"   
)

◆ MAXON_ATTRIBUTE() [19/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Group  ,
GROUP_GENERAL  ,
"group.general"   
)

◆ MAXON_ATTRIBUTE() [20/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Group  ,
GROUP_BASE  ,
"group.base"   
)

◆ MAXON_ATTRIBUTE() [21/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Group  ,
GROUP_SPECULAR  ,
"group.specular"   
)

◆ MAXON_ATTRIBUTE() [22/22]

maxon::NODESPACE::EXCHANGE::BUNDLE::VIEWPORTMATERIAL::MAXON_ATTRIBUTE ( Group  ,
GROUP_EMISSION  ,
"group.emission"   
)