Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 25, 2023

Related issue: -

Description

  • MMDLoader now always converts the sRGB material definitions to linear (which is not automatically done when using Color.fromArray()).
  • LUT is now also converted to sRGB.
  • Adding some missing color space conversions to VRMLLoader.

@Mugen87 Mugen87 marked this pull request as ready for review May 25, 2023 13:02
minColor.set( this.map[ j ][ 1 ] );
maxColor.set( this.map[ j + 1 ][ 1 ] );
minColor.setHex( this.map[ j ][ 1 ], LinearSRGBColorSpace );
maxColor.setHex( this.map[ j + 1 ][ 1 ], LinearSRGBColorSpace );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lerp should be done with sRGB colors so I use this approach to avoid a color space conversion when setting the hex values. I'm open for different approach since using LinearSRGBColorSpace is a bit confusing at first glance.

@Mugen87 Mugen87 added this to the r153 milestone May 25, 2023
@Mugen87 Mugen87 merged commit 7dd5615 into mrdoob:dev May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant