From 46a7de7a0b21ebf03c8128fb3952db4c4d670228 Mon Sep 17 00:00:00 2001 From: diharaw Date: Thu, 30 Sep 2021 08:56:16 +0100 Subject: [PATCH] Moved KHR_material_volume thickness texture under aiTextureType_TRANSMISSION. --- include/assimp/material.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/assimp/material.h b/include/assimp/material.h index c86848993..5499bd916 100644 --- a/include/assimp/material.h +++ b/include/assimp/material.h @@ -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.