How the Check Works
The CheckNormalMaps
is designed to identify and report instances where textures assigned in normal map slots of materials have their TextureType set incorrectly. This check helps ensure that normal maps are properly configured for optimal rendering.
The check operates at the Material level:
- Material Level: When invoked on a
Material
, it iterates through the shader properties of the material. For each property flagged as anormal map
in the shader, it checks if the assigned texture has the correctTextureType
set toNormalMap
.
The check performs the following steps:
- Shader Property Iteration: It iterates through the shader properties of the material, identifying those flagged as normal maps.
- Texture Assignment: For each identified normal map property, it retrieves the assigned texture and checks its TextureType.
- Validity Check: If the assigned texture’s TextureType is not set to NormalMap, the check flags it as an issue.
- Issue Reporting: If the check identifies materials with normal maps incorrectly configured, it logs an issue with a description indicating the problem and references the material.
When to Use This Check
- Texture Configuration: Ensure that normal maps in your materials are correctly configured to maintain proper rendering.
- Material Consistency: Identify and address instances where normal map textures are assigned with incorrect TextureType values for consistency across materials.
How to Use the Check
Perform Check: Perform the Check via the Verification Window by selecting the Materials you want to check for normal map validity.
Methods
PerformCheck(Material material)
: Initiates the verification process for a specific Material. It checks for normal map validity by analyzing the shader properties and assigned textures.
Attributes
description
: Provides a short description of what this check does, highlighting its purpose in identifying normal maps with incorrect TextureType assignments within materials.
longDescription
: Offers a more detailed explanation of the check, providing additional context on how it analyzes and reports issues related to normal map validity within materials.