*/}}
浏览代码

Eraser strength fix

YimingWu 2 周之前
父节点
当前提交
835569b7c5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ouroperations.c

+ 2 - 2
ouroperations.c

@@ -145,8 +145,8 @@ void our_ToBrushData140(OurBrushData140* b140, real transparency,real Accumulati
             safepow(Our->MixedPigment.Absorption[i],AccumulationStrength);
         b140->Reflectance[i*4]=Our->MixedPigment.Reflectance[i];
     }
-    b140->Absorption[15*4]=Our->MixedPigment.Absorption[15]*transparency;
-    b140->Reflectance[15*4]=Our->MixedPigment.Reflectance[15]*transparency;
+    b140->Absorption[15*4]=(Our->Erasing?1.0f:Our->MixedPigment.Absorption[15])*transparency;
+    b140->Reflectance[15*4]=(Our->Erasing?1.0f:Our->MixedPigment.Reflectance[15])*transparency;
 }