Moved KHR_material_volume thickness texture under aiTextureType_TRANSMISSION.

pull/4112/head
diharaw 2021-09-30 08:56:16 +01:00
parent addd541251
commit 46a7de7a0b
1 changed files with 1 additions and 7 deletions

View File

@ -318,12 +318,6 @@ enum aiTextureType {
*/
aiTextureType_TRANSMISSION = 21,
/** Volume
* Simulates transmission through the surface
* May include further information such as wall thickness
*/
aiTextureType_VOLUME = 22,
/** Unknown texture
*
* A texture reference that does not match any of the definitions
@ -1041,7 +1035,7 @@ extern "C" {
#define AI_MATKEY_VOLUME_THICKNESS_FACTOR "$mat.volume.thicknessFactor", 0, 0
// Texture that defines the thickness.
// Multiplied by AI_MATKEY_THICKNESS_FACTOR
#define AI_MATKEY_VOLUME_THICKNESS_TEXTURE aiTextureType_VOLUME, 0
#define AI_MATKEY_VOLUME_THICKNESS_TEXTURE aiTextureType_TRANSMISSION, 1
// Density of the medium given as the average distance that light travels in the medium before interacting with a particle.
#define AI_MATKEY_VOLUME_ATTENUATION_DISTANCE "$mat.volume.attenuationDistance", 0, 0
// The color that white light turns into due to absorption when reaching the attenuation distance.