*/}}
Browse Source

Eraser strength fix

YimingWu 1 tuần trước cách đây
mục cha
commit
835569b7c5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
 }