Skip to content

Commit

Permalink
Merge pull request #1435 from potsmugen/fix
Browse files Browse the repository at this point in the history
fix: Trans effect on reflection intensity
  • Loading branch information
K4thos authored Oct 9, 2023
2 parents 9e75bd8 + 5464315 commit bce381b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anim.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,8 @@ func (sl ShadowList) drawReflection(x, y, scl float32) {
} else {
s.anim.srcAlpha, s.anim.dstAlpha = int16(s.alpha[0]), int16(s.alpha[1])
}
ref := sys.stage.reflection * s.shadowAlpha >> 8
//ref := sys.stage.reflection * s.shadowAlpha >> 8
ref := sys.stage.reflection
s.anim.srcAlpha = int16(float32(int32(s.anim.srcAlpha)*ref) / 255)
if s.anim.dstAlpha < 0 {
s.anim.dstAlpha = 128
Expand Down

0 comments on commit bce381b

Please sign in to comment.