From 909c0a820ae35055d73199461a2d8c85e4fb860f Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 10 Jan 2018 19:22:56 +0100 Subject: [PATCH] Document AI_MATKEY_REFLECTIVITY and AI_MATKEY_COLOR_REFLECTIVE. --- doc/dox.h | 115 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 65 insertions(+), 50 deletions(-) diff --git a/doc/dox.h b/doc/dox.h index afd6e487a..44ed65c58 100644 --- a/doc/dox.h +++ b/doc/dox.h @@ -803,188 +803,203 @@ All material key constants start with 'AI_MATKEY' (it's an ugly macro for histor Name Data Type Default Value - Meaning - Notes + Meaning + Notes NAME aiString n/a - The name of the material, if available. - Ignored by aiProcess_RemoveRedundantMaterials. Materials are considered equal even if their names are different. + The name of the material, if available. + Ignored by aiProcess_RemoveRedundantMaterials. Materials are considered equal even if their names are different. COLOR_DIFFUSE aiColor3D black (0,0,0) - Diffuse color of the material. This is typically scaled by the amount of incoming diffuse light (e.g. using gouraud shading) - --- + Diffuse color of the material. This is typically scaled by the amount of incoming diffuse light (e.g. using gouraud shading) + --- COLOR_SPECULAR aiColor3D black (0,0,0) - Specular color of the material. This is typically scaled by the amount of incoming specular light (e.g. using phong shading) - --- + Specular color of the material. This is typically scaled by the amount of incoming specular light (e.g. using phong shading) + --- COLOR_AMBIENT aiColor3D black (0,0,0) - Ambient color of the material. This is typically scaled by the amount of ambient light - --- + Ambient color of the material. This is typically scaled by the amount of ambient light + --- COLOR_EMISSIVE aiColor3D black (0,0,0) - Emissive color of the material. This is the amount of light emitted by the object. In real time applications it will usually not affect surrounding objects, but raytracing applications may wish to treat emissive objects as light sources. - --- + Emissive color of the material. This is the amount of light emitted by the object. In real time applications it will usually not affect surrounding objects, but raytracing applications may wish to treat emissive objects as light sources. + --- COLOR_TRANSPARENT aiColor3D black (0,0,0) - Defines the transparent color of the material, this is the color to be multiplied with the color of - translucent light to construct the final 'destination color' for a particular position in the screen buffer. T - --- + Defines the transparent color of the material, this is the color to be multiplied with the color of translucent light to construct the final 'destination color' for a particular position in the screen buffer. + --- + + + + COLOR_REFLECTIVE + aiColor3D + black (0,0,0) + Defines the reflective color of the material. This is typically scaled by the amount of incoming light from the direction of mirror reflection. Usually combined with an enviroment lightmap of some kind for real-time applications. + --- + + + + REFLECTIVITY + float + 0.0 + Scales the reflective color of the material. + --- WIREFRAME int false - Specifies whether wireframe rendering must be turned on for the material. 0 for false, !0 for true. - --- + Specifies whether wireframe rendering must be turned on for the material. 0 for false, !0 for true. + --- TWOSIDED int false - Specifies whether meshes using this material must be rendered without backface culling. 0 for false, !0 for true. - Some importers set this property if they don't know whether the output face oder is right. As long as it is not set, you may safely enable backface culling. + Specifies whether meshes using this material must be rendered without backface culling. 0 for false, !0 for true. + Some importers set this property if they don't know whether the output face oder is right. As long as it is not set, you may safely enable backface culling. SHADING_MODEL int gouraud - One of the #aiShadingMode enumerated values. Defines the library shading model to use for (real time) rendering to approximate the original look of the material as closely as possible. - The presence of this key might indicate a more complex material. If absent, assume phong shading only if a specular exponent is given. + One of the #aiShadingMode enumerated values. Defines the library shading model to use for (real time) rendering to approximate the original look of the material as closely as possible. + The presence of this key might indicate a more complex material. If absent, assume phong shading only if a specular exponent is given. BLEND_FUNC int false - One of the #aiBlendMode enumerated values. Defines how the final color value in the screen buffer is computed from the given color at that position and the newly computed color from the material. Simply said, alpha blending settings. - - + One of the #aiBlendMode enumerated values. Defines how the final color value in the screen buffer is computed from the given color at that position and the newly computed color from the material. Simply said, alpha blending settings. + - OPACITY float 1.0 - Defines the opacity of the material in a range between 0..1. - Use this value to decide whether you have to activate alpha blending for rendering. OPACITY != 1 usually also implies TWOSIDED=1 to avoid cull artifacts. + Defines the opacity of the material in a range between 0..1. + Use this value to decide whether you have to activate alpha blending for rendering. OPACITY != 1 usually also implies TWOSIDED=1 to avoid cull artifacts. SHININESS float 0.f - Defines the shininess of a phong-shaded material. This is actually the exponent of the phong specular equation - SHININESS=0 is equivalent to SHADING_MODEL=aiShadingMode_Gouraud. + Defines the shininess of a phong-shaded material. This is actually the exponent of the phong specular equation + SHININESS=0 is equivalent to SHADING_MODEL=aiShadingMode_Gouraud. SHININESS_STRENGTH float 1.0 - Scales the specular color of the material. - This value is kept separate from the specular color by most modelers, and so do we. + Scales the specular color of the material. + This value is kept separate from the specular color by most modelers, and so do we. REFRACTI float 1.0 - Defines the Index Of Refraction for the material. That's not supported by most file formats. - Might be of interest for raytracing. + Defines the Index Of Refraction for the material. That's not supported by most file formats. + Might be of interest for raytracing. TEXTURE(t,n) aiString n/a - Defines the path of the n'th texture on the stack 't', where 'n' is any value >= 0 and 't' is one of the #aiTextureType enumerated values. Either a filepath or `*`, where `` is the index of an embedded texture in aiScene::mTextures. - See the 'Textures' section above. + Defines the path of the n'th texture on the stack 't', where 'n' is any value >= 0 and 't' is one of the #aiTextureType enumerated values. Either a filepath or `*`, where `` is the index of an embedded texture in aiScene::mTextures. + See the 'Textures' section above. TEXBLEND(t,n) float n/a - Defines the strength the n'th texture on the stack 't'. All color components (rgb) are multiplied with this factor *before* any further processing is done. - - + Defines the strength the n'th texture on the stack 't'. All color components (rgb) are multiplied with this factor *before* any further processing is done. + - TEXOP(t,n) int n/a - One of the #aiTextureOp enumerated values. Defines the arithmetic operation to be used to combine the n'th texture on the stack 't' with the n-1'th. TEXOP(t,0) refers to the blend operation between the base color for this stack (e.g. COLOR_DIFFUSE for the diffuse stack) and the first texture. - - + One of the #aiTextureOp enumerated values. Defines the arithmetic operation to be used to combine the n'th texture on the stack 't' with the n-1'th. TEXOP(t,0) refers to the blend operation between the base color for this stack (e.g. COLOR_DIFFUSE for the diffuse stack) and the first texture. + - MAPPING(t,n) int n/a - Defines how the input mapping coordinates for sampling the n'th texture on the stack 't' are computed. Usually explicit UV coordinates are provided, but some model file formats might also be using basic shapes, such as spheres or cylinders, to project textures onto meshes. - See the 'Textures' section below. #aiProcess_GenUVCoords can be used to let Assimp compute proper UV coordinates from projective mappings. + Defines how the input mapping coordinates for sampling the n'th texture on the stack 't' are computed. Usually explicit UV coordinates are provided, but some model file formats might also be using basic shapes, such as spheres or cylinders, to project textures onto meshes. + See the 'Textures' section below. #aiProcess_GenUVCoords can be used to let Assimp compute proper UV coordinates from projective mappings. UVWSRC(t,n) int n/a - Defines the UV channel to be used as input mapping coordinates for sampling the n'th texture on the stack 't'. All meshes assigned to this material share the same UV channel setup - Presence of this key implies MAPPING(t,n) to be #aiTextureMapping_UV. See @ref uvwsrc for more details. + Defines the UV channel to be used as input mapping coordinates for sampling the n'th texture on the stack 't'. All meshes assigned to this material share the same UV channel setup + Presence of this key implies MAPPING(t,n) to be #aiTextureMapping_UV. See @ref uvwsrc for more details. MAPPINGMODE_U(t,n) int n/a - Any of the #aiTextureMapMode enumerated values. Defines the texture wrapping mode on the x axis for sampling the n'th texture on the stack 't'. 'Wrapping' occurs whenever UVs lie outside the 0..1 range. - - + Any of the #aiTextureMapMode enumerated values. Defines the texture wrapping mode on the x axis for sampling the n'th texture on the stack 't'. 'Wrapping' occurs whenever UVs lie outside the 0..1 range. + - MAPPINGMODE_V(t,n) int n/a - Wrap mode on the v axis. See MAPPINGMODE_U. - - + Wrap mode on the v axis. See MAPPINGMODE_U. + - TEXMAP_AXIS(t,n) aiVector3D n/a - Defines the base axis to to compute the mapping coordinates for the n'th texture on the stack 't' from. This is not required for UV-mapped textures. For instance, if MAPPING(t,n) is #aiTextureMapping_SPHERE, U and V would map to longitude and latitude of a sphere around the given axis. The axis is given in local mesh space. - - + Defines the base axis to to compute the mapping coordinates for the n'th texture on the stack 't' from. This is not required for UV-mapped textures. For instance, if MAPPING(t,n) is #aiTextureMapping_SPHERE, U and V would map to longitude and latitude of a sphere around the given axis. The axis is given in local mesh space. + - TEXFLAGS(t,n) int n/a - Defines miscellaneous flag for the n'th texture on the stack 't'. This is a bitwise combination of the #aiTextureFlags enumerated values. - - + Defines miscellaneous flag for the n'th texture on the stack 't'. This is a bitwise combination of the #aiTextureFlags enumerated values. + - @@ -1075,7 +1090,7 @@ for all textures assign channel specified in uvwsrc else assign channels in ascending order for all texture stacks, - i.e. diffuse1 gets channel 1, opacity0 gets channel 0. + i.e. diffuse1 gets channel 1, opacity0 gets channel 0. @endverbatim