Class AiMatKeys
Static class containing material key constants. A fully qualified mat key name here means that it's a string that combines the mat key (base) name, its texture type semantic, and its texture index into a single string delimited by commas. For non-texture material properties, the texture type semantic and texture index are always zero.
Inherited Members
Namespace: SharpAssimp.Unmanaged
Assembly: SharpAssimp.dll
Syntax
public static class AiMatKeys
Fields
| Edit this page View SourceBLEND_FUNC
Blending function (BlendMode)
Declaration
public const string BLEND_FUNC = "$mat.blend,0,0"
Field Value
Type | Description |
---|---|
string |
BLEND_FUNC_BASE
Blending function (BlendMode)
Declaration
public const string BLEND_FUNC_BASE = "$mat.blend"
Field Value
Type | Description |
---|---|
string |
BUMPSCALING
Bumpscaling (float)
Declaration
public const string BUMPSCALING = "$mat.bumpscaling,0,0"
Field Value
Type | Description |
---|---|
string |
BUMPSCALING_BASE
Bumpscaling (float)
Declaration
public const string BUMPSCALING_BASE = "$mat.bumpscaling"
Field Value
Type | Description |
---|---|
string |
COLOR_AMBIENT
Ambient color (Vector4)
Declaration
public const string COLOR_AMBIENT = "$clr.ambient,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_AMBIENT_BASE
Ambient color (Vector4)
Declaration
public const string COLOR_AMBIENT_BASE = "$clr.ambient"
Field Value
Type | Description |
---|---|
string |
COLOR_DIFFUSE
Diffuse color (Vector4)
Declaration
public const string COLOR_DIFFUSE = "$clr.diffuse,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_DIFFUSE_BASE
Diffuse color (Vector4)
Declaration
public const string COLOR_DIFFUSE_BASE = "$clr.diffuse"
Field Value
Type | Description |
---|---|
string |
COLOR_EMISSIVE
Emissive color (Vector4)
Declaration
public const string COLOR_EMISSIVE = "$clr.emissive,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_EMISSIVE_BASE
Emissive color (Vector4)
Declaration
public const string COLOR_EMISSIVE_BASE = "$clr.emissive"
Field Value
Type | Description |
---|---|
string |
COLOR_REFLECTIVE
Reflective color (Vector4)
Declaration
public const string COLOR_REFLECTIVE = "$clr.reflective,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_REFLECTIVE_BASE
Reflective color (Vector4)
Declaration
public const string COLOR_REFLECTIVE_BASE = "$clr.reflective"
Field Value
Type | Description |
---|---|
string |
COLOR_SPECULAR
Specular color (Vector4)
Declaration
public const string COLOR_SPECULAR = "$clr.specular,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_SPECULAR_BASE
Specular color (Vector4)
Declaration
public const string COLOR_SPECULAR_BASE = "$clr.specular"
Field Value
Type | Description |
---|---|
string |
COLOR_TRANSPARENT
Transparent color (Vector4)
Declaration
public const string COLOR_TRANSPARENT = "$clr.transparent,0,0"
Field Value
Type | Description |
---|---|
string |
COLOR_TRANSPARENT_BASE
Transparent color (Vector4)
Declaration
public const string COLOR_TRANSPARENT_BASE = "$clr.transparent"
Field Value
Type | Description |
---|---|
string |
ENABLE_WIREFRAME
Enable wireframe property (boolean)
Declaration
public const string ENABLE_WIREFRAME = "$mat.wireframe,0,0"
Field Value
Type | Description |
---|---|
string |
ENABLE_WIREFRAME_BASE
Enable wireframe property (boolean)
Declaration
public const string ENABLE_WIREFRAME_BASE = "$mat.wireframe"
Field Value
Type | Description |
---|---|
string |
GLOBAL_BACKGROUND_IMAGE
Background image (String)
Declaration
public const string GLOBAL_BACKGROUND_IMAGE = "?bg.global,0,0"
Field Value
Type | Description |
---|---|
string |
GLOBAL_BACKGROUND_IMAGE_BASE
Background image (String)
Declaration
public const string GLOBAL_BACKGROUND_IMAGE_BASE = "?bg.global"
Field Value
Type | Description |
---|---|
string |
GLOBAL_SHADERLANG
Shader language type (string)
Declaration
public const string GLOBAL_SHADERLANG = "?sh.lang,0,0"
Field Value
Type | Description |
---|---|
string |
GLOBAL_SHADERLANG_BASE
Shader language type (string)
Declaration
public const string GLOBAL_SHADERLANG_BASE = "?sh.lang"
Field Value
Type | Description |
---|---|
string |
MAPPINGMODE_U_BASE
Mapping mode U base name
Declaration
public const string MAPPINGMODE_U_BASE = "$tex.mapmodeu"
Field Value
Type | Description |
---|---|
string |
MAPPINGMODE_V_BASE
Mapping mode V base name
Declaration
public const string MAPPINGMODE_V_BASE = "$tex.mapmodev"
Field Value
Type | Description |
---|---|
string |
MAPPING_BASE
Mapping base name
Declaration
public const string MAPPING_BASE = "$tex.mapping"
Field Value
Type | Description |
---|---|
string |
NAME
Material name (String)
Declaration
public const string NAME = "?mat.name,0,0"
Field Value
Type | Description |
---|---|
string |
NAME_BASE
Material name (String)
Declaration
public const string NAME_BASE = "?mat.name"
Field Value
Type | Description |
---|---|
string |
OPACITY
Opacity (float)
Declaration
public const string OPACITY = "$mat.opacity,0,0"
Field Value
Type | Description |
---|---|
string |
OPACITY_BASE
Opacity (float)
Declaration
public const string OPACITY_BASE = "$mat.opacity"
Field Value
Type | Description |
---|---|
string |
REFLECTIVITY
Reflectivity (float)
Declaration
public const string REFLECTIVITY = "$mat.reflectivity,0,0"
Field Value
Type | Description |
---|---|
string |
REFLECTIVITY_BASE
Reflectivity (float)
Declaration
public const string REFLECTIVITY_BASE = "$mat.reflectivity"
Field Value
Type | Description |
---|---|
string |
REFRACTI
Refracti (float)
Declaration
public const string REFRACTI = "$mat.refracti,0,0"
Field Value
Type | Description |
---|---|
string |
REFRACTI_BASE
Refracti (float)
Declaration
public const string REFRACTI_BASE = "$mat.refracti"
Field Value
Type | Description |
---|---|
string |
SHADER_COMPUTE
Compute shader source code (string)
Declaration
public const string SHADER_COMPUTE = "?sh.cs,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_COMPUTE_BASE
Compute shader source code (string)
Declaration
public const string SHADER_COMPUTE_BASE = "?sh.cs"
Field Value
Type | Description |
---|---|
string |
SHADER_FRAGMENT
Fragment/Pixel shader source code (string)
Declaration
public const string SHADER_FRAGMENT = "?sh.fs,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_FRAGMENT_BASE
Fragment/Pixel shader source code (string)
Declaration
public const string SHADER_FRAGMENT_BASE = "?sh.fs"
Field Value
Type | Description |
---|---|
string |
SHADER_GEO
Geometry shader source code (string)
Declaration
public const string SHADER_GEO = "?sh.gs,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_GEO_BASE
Geometry shader source code (string)
Declaration
public const string SHADER_GEO_BASE = "?sh.gs"
Field Value
Type | Description |
---|---|
string |
SHADER_PRIMITIVE
Primitive/Domain shader source code (string)
Declaration
public const string SHADER_PRIMITIVE = "?sh.ps,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_PRIMITIVE_BASE
Primitive/Domain shader source code (string)
Declaration
public const string SHADER_PRIMITIVE_BASE = "?sh.ps"
Field Value
Type | Description |
---|---|
string |
SHADER_TESSELATION
Tesselation shader source code (string)
Declaration
public const string SHADER_TESSELATION = "?sh.ts,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_TESSELATION_BASE
Tesselation shader source code (string)
Declaration
public const string SHADER_TESSELATION_BASE = "?sh.ts"
Field Value
Type | Description |
---|---|
string |
SHADER_VERTEX
Vertex shader source code (string)
Declaration
public const string SHADER_VERTEX = "?sh.vs,0,0"
Field Value
Type | Description |
---|---|
string |
SHADER_VERTEX_BASE
Vertex shader source code (string)
Declaration
public const string SHADER_VERTEX_BASE = "?sh.vs"
Field Value
Type | Description |
---|---|
string |
SHADING_MODEL
Shading mode property (ShadingMode)
Declaration
public const string SHADING_MODEL = "$mat.shadingm,0,0"
Field Value
Type | Description |
---|---|
string |
SHADING_MODEL_BASE
Shading mode property (ShadingMode)
Declaration
public const string SHADING_MODEL_BASE = "$mat.shadingm"
Field Value
Type | Description |
---|---|
string |
SHININESS
Shininess (float)
Declaration
public const string SHININESS = "$mat.shininess,0,0"
Field Value
Type | Description |
---|---|
string |
SHININESS_BASE
Shininess (float)
Declaration
public const string SHININESS_BASE = "$mat.shininess"
Field Value
Type | Description |
---|---|
string |
SHININESS_STRENGTH
Shininess strength (float)
Declaration
public const string SHININESS_STRENGTH = "$mat.shinpercent,0,0"
Field Value
Type | Description |
---|---|
string |
SHININESS_STRENGTH_BASE
Shininess strength (float)
Declaration
public const string SHININESS_STRENGTH_BASE = "$mat.shinpercent"
Field Value
Type | Description |
---|---|
string |
TEXBLEND_BASE
Texture blend base name.
Declaration
public const string TEXBLEND_BASE = "$tex.blend"
Field Value
Type | Description |
---|---|
string |
TEXFLAGS_BASE
Texture flags base name
Declaration
public const string TEXFLAGS_BASE = "$tex.flags"
Field Value
Type | Description |
---|---|
string |
TEXMAP_AXIS_BASE
Texture map axis base name
Declaration
public const string TEXMAP_AXIS_BASE = "$tex.mapaxis"
Field Value
Type | Description |
---|---|
string |
TEXOP_BASE
Texture op base name
Declaration
public const string TEXOP_BASE = "$tex.op"
Field Value
Type | Description |
---|---|
string |
TEXTURE_BASE
Texture base name
Declaration
public const string TEXTURE_BASE = "$tex.file"
Field Value
Type | Description |
---|---|
string |
TRANSPARENCYFACTOR
Transparency Factor (float)
Declaration
public const string TRANSPARENCYFACTOR = "$mat.transparencyfactor,0,0"
Field Value
Type | Description |
---|---|
string |
TRANSPARENCYFACTOR_BASE
Transparency Factor (float)
Declaration
public const string TRANSPARENCYFACTOR_BASE = "$mat.transparencyfactor"
Field Value
Type | Description |
---|---|
string |
TWOSIDED
Two sided property (boolean)
Declaration
public const string TWOSIDED = "$mat.twosided,0,0"
Field Value
Type | Description |
---|---|
string |
TWOSIDED_BASE
Two sided property (boolean)
Declaration
public const string TWOSIDED_BASE = "$mat.twosided"
Field Value
Type | Description |
---|---|
string |
UVTRANSFORM_BASE
UV transform base name
Declaration
public const string UVTRANSFORM_BASE = "$tex.uvtrafo"
Field Value
Type | Description |
---|---|
string |
UVWSRC_BASE
UVWSRC base name
Declaration
public const string UVWSRC_BASE = "$tex.uvwsrc"
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetBaseName(string)
Helper function to get the base name from a fully qualified name of a material property type name. The format of such a string is:
"baseName,TextureType,texIndex"
Declaration
public static string GetBaseName(string fullyQualifiedName)
Parameters
Type | Name | Description |
---|---|---|
string | fullyQualifiedName | Fully qualified material property name. |
Returns
Type | Description |
---|---|
string | Base name of the property type. |
GetFullTextureName(string, TextureType, int)
Helper function to get the fully qualified name of a texture property type name. Takes in a base name constant, a texture type, and a texture index and outputs the name in the format:
"baseName,TextureType,texIndex"
Declaration
public static string GetFullTextureName(string baseName, TextureType texType, int texIndex)
Parameters
Type | Name | Description |
---|---|---|
string | baseName | Base name |
TextureType | texType | Texture type |
int | texIndex | Texture index |
Returns
Type | Description |
---|---|
string | Fully qualified texture name |