Changed "KillNormals"-Step to "RemoveVertexComponentXYZ". See ML for more details on this.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@168 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -182,4 +182,40 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#define AI_CONFIG_IMPORT_MDL_COLORMAP "imp.mdl.color_map"
|
||||
|
||||
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
enum aiVertexComponent
|
||||
{
|
||||
//! Normal vectors
|
||||
aiVertexComponent_NORMALS = 0x2u,
|
||||
|
||||
//! Tangents and bitangents go always together ...
|
||||
aiVertexComponent_TANGENTS_AND_BITANGENTS = 0x4u,
|
||||
|
||||
//! ALL color sets
|
||||
//! Use aiVertexComponent_COLORn(N) to specifiy the N'th set
|
||||
aiVertexComponent_COLORS = 0x8,
|
||||
|
||||
//! ALL texture UV sets
|
||||
//! aiVertexComponent_TEXCOORDn(N) to specifiy the N'th set
|
||||
aiVertexComponent_TEXCOORDS = 0x10,
|
||||
};
|
||||
|
||||
#define aiVertexComponent_COLORSn(n) (1u << (n+10u))
|
||||
#define aiVertexComponent_TEXCOORDSn(n) (1u << (n+20u))
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** \brief Input parameter to the #aiProcess_RemVertexComponentXYZ step:
|
||||
* Specifies the vertex components to be removed.
|
||||
*
|
||||
* See the documentation to this step for further details. The property
|
||||
* is expected to be an integer, a bitwise combination of the
|
||||
* #aiVertexComponent flags defined above in this header. The default
|
||||
* value is 0.
|
||||
*/
|
||||
#define AI_CONFIG_PP_RVC_FLAGS "pp.rvc.flags"
|
||||
|
||||
#endif // !! AI_CONFIG_H_INC
|
||||
|
||||
@@ -80,11 +80,21 @@ enum aiPostProcessSteps
|
||||
*/
|
||||
aiProcess_Triangulate = 8,
|
||||
|
||||
/** Omits all normals found in the file. This can be used together
|
||||
* with either the aiProcess_GenNormals or the aiProcess_GenSmoothNormals
|
||||
* flag to force the recomputation of the normals.
|
||||
/** Removes some parts of the mesh data structure (vertex components).
|
||||
*
|
||||
* The vertex components to be removed are specified in a separate
|
||||
* configuration option, AI_CONFIG_PP_RVC_FLAGS. This is quite useful
|
||||
* if you don't need all vertex components. Especially vertex colors
|
||||
* are rarely used today ... . Calling this step to exclude unrequired
|
||||
* vertex components from the pipeline as early as possible results
|
||||
* in an increased performance and a more optimized output data structure.
|
||||
* Note that vertex positions can't be removed. This step is also useful
|
||||
* if you want to force Assimp to recompute normals or tangents. The
|
||||
* corresponding steps don't recompute them if they're already there (
|
||||
* loaded from the source asset). By using this step you can make sure
|
||||
* they are NOT there.
|
||||
*/
|
||||
aiProcess_KillNormals = 0x10,
|
||||
aiProcess_RemVertexComponentXYZ = 0x10,
|
||||
|
||||
/** Generates normals for all faces of all meshes. The normals are shared
|
||||
* between the three vertices of a face. This is ignored
|
||||
|
||||
0
include/aiSceneEntities.h
Normal file
0
include/aiSceneEntities.h
Normal file
Reference in New Issue
Block a user