Skip to content

Commit 40b5a23

Browse files
committed
fix wrong comment
1 parent 749f1df commit 40b5a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Triggers/RemoveLightSourcesTrigger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private static void OnLevelUpdate(On.Celeste.Level.orig_Update orig, Level self)
4545

4646
private static void BloomRendererHook(On.Celeste.BloomRenderer.orig_Apply orig, BloomRenderer self, VirtualRenderTarget target, Scene scene) {
4747
if (alphaFade < 1f) {
48-
// set all alphas to 0, and back up original values.
48+
// multiply all alphas by alphaFade, and back up original values.
4949
List<BloomPoint> affectedBloomPoints = new List<BloomPoint>();
5050
List<float> originalAlpha = new List<float>();
5151
foreach (BloomPoint bloomPoint in scene.Tracker.GetComponents<BloomPoint>().ToArray()) {
@@ -72,7 +72,7 @@ private static void BloomRendererHook(On.Celeste.BloomRenderer.orig_Apply orig,
7272

7373
private static void LightHook(On.Celeste.LightingRenderer.orig_BeforeRender orig, LightingRenderer self, Scene scene) {
7474
if (alphaFade < 1f) {
75-
// set all alphas to 0, and back up original values.
75+
// multiply all alphas by alphaFade, and back up original values.
7676
List<VertexLight> affectedVertexLights = new List<VertexLight>();
7777
List<float> originalAlpha = new List<float>();
7878
foreach (VertexLight vertexLight in scene.Tracker.GetComponents<VertexLight>().ToArray()) {

0 commit comments

Comments
 (0)