Skip to content

Commit

Permalink
Hack for a 32-bit bumpmap format
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Nov 27, 2024
1 parent ac7ecff commit c0f6d31
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Sources/Plasma/FeatureLib/pfDXPipeline/plDXPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7762,11 +7762,16 @@ void plDXPipeline::IGetD3DTextureFormat( plBitmap *b, D3DFORMAT &formatType,
}
else if( b->GetFlags() & plMipmap::kBumpEnvMap )
{
texSize = 16;
if( b->GetFlags() & plMipmap::kAlphaChannelFlag )
formatType = D3DFMT_L6V5U5;
else
formatType = D3DFMT_V8U8;
if (b->GetPixelSize() == 32) {
texSize = 32;
formatType = D3DFMT_X8L8V8U8;
} else {
texSize = 16;
if( b->GetFlags() & plMipmap::kAlphaChannelFlag )
formatType = D3DFMT_L6V5U5;
else
formatType = D3DFMT_V8U8;
}
}
else if( b->GetPixelSize() == 16 )
{
Expand Down

0 comments on commit c0f6d31

Please sign in to comment.