Skip to content

Commit

Permalink
Tweak temperature L adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Jun 29, 2020
1 parent 1058d44 commit 80afe5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esper/filter/balance.js
Expand Up @@ -9,7 +9,7 @@ const frag = res.shader.load('balance.frag')
class BalanceFilter extends PIXI.Filter {
#max = 100
#min = -100
#precision = 0.0016
#precision = 0.002

constructor(a = 0, b = 0) {
super(undefined, frag)
Expand All @@ -35,7 +35,7 @@ class BalanceFilter extends PIXI.Filter {

set b(value) {
this.uniforms.b = this.restrict(value)
this.uniforms.c = this.uniforms.b * (0.3 / (this.#precision * this.#max))
this.uniforms.c = this.uniforms.b * (0.33 / (this.#precision * this.#max))
}

set(a, b) {
Expand Down

0 comments on commit 80afe5a

Please sign in to comment.