fix column transparency to work on rendering

This commit is contained in:
shun-iwasawa 2023-03-31 10:48:24 +09:00 committed by manongjohn
parent bcce7d7b7a
commit 41b40fa4b3

View file

@ -986,7 +986,7 @@ PlacedFx FxBuilder::makePF(TLevelColumnFx *lcfx) {
(column->isCamstandVisible() && column->getOpacity() != 255))) {
TPixel32 colorScale = m_scene->getProperties()->getColorFilterColor(
column->getColorFilterId());
if (colorScale != TPixel::Black) {
if (colorScale != TPixel::Black || column->getOpacity() != 255) {
colorScale.m = (typename TPixel32::Channel)((int)colorScale.m *
(int)column->getOpacity() /
TPixel32::maxChannelValue);