mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 00:01:53 +02:00
Fixed a bug with spec maps.
This commit is contained in:
@@ -1900,6 +1900,20 @@ idImage* idMaterial::GetBumpImage(void) const {
|
||||
return GetEditorImage();
|
||||
}
|
||||
|
||||
/*
|
||||
===================
|
||||
idMaterial::GetSpecImage
|
||||
===================
|
||||
*/
|
||||
idImage* idMaterial::GetSpecImage(void) const {
|
||||
for (int i = 0; i < numStages; i++) {
|
||||
if (stages[i].lighting == SL_SPECULAR && stages[i].texture.image) {
|
||||
return stages[i].texture.image;
|
||||
}
|
||||
}
|
||||
return globalImages->blackImage;
|
||||
}
|
||||
|
||||
/*
|
||||
===================
|
||||
idMaterial::GetGlowImage
|
||||
|
||||
Reference in New Issue
Block a user