Skip to content

Commit

Permalink
fix(encode): hdrCapacityMax correctly computed in output metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-pelagatti committed Dec 2, 2023
1 parent fd94680 commit f5f2215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encode/materials/GainMapEncoderMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,5 @@ export class GainMapEncoderMaterial extends ShaderMaterial {
* @see {@link GainMapMetadata.hdrCapacityMax}
* @remarks Logarithmic space
*/
get hdrCapacityMax (): number { return Math.min(Math.max(0, this.gainMapMax[0]), Math.max(0, this.gainMapMax[1]), Math.max(0, this.gainMapMax[2])) }
get hdrCapacityMax (): number { return Math.max(Math.max(0, this.gainMapMax[0]), Math.max(0, this.gainMapMax[1]), Math.max(0, this.gainMapMax[2])) }
}

0 comments on commit f5f2215

Please sign in to comment.