Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGLRenderer: Remove RGBM7Encoding and RGBM16Encoding. #23046

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Dec 18, 2021

Related issue: #23039

Description

This PR removes RGBM7Encoding and RGBM16Encoding from the engine.

It is still possible to load RGBM encoded textures with RGBMLoader. However, it outputs now half-float (default) or float.

Since you can't configure WebGLRenderer.outputEncoding with RGBM7Encoding and RGBM16Encoding anymore, I've updated the RGBM encoder fiddle to use a raw shader material instead.

https://jsfiddle.net/yvfhbeo3/4/

It should give users a hint how to implement RGBM encoding with three.js if necessary. It's also easy to change it so RGBD or something is used.

@mrdoob mrdoob added this to the r136 milestone Dec 18, 2021
@mrdoob mrdoob merged commit 3cce635 into mrdoob:dev Dec 18, 2021
@mrdoob
Copy link
Owner

mrdoob commented Dec 18, 2021

Thanks!

drcmda pushed a commit to pmndrs/three-stdlib that referenced this pull request Jan 1, 2022
* fix: remove RGBM7Encoding and RGBM16Encoding

Mirrors mrdoob/three.js#23046

* fix(ColorSpaceNode): remove RGBDEncoding

Mirrors mrdoob/three.js#23049

* fix: remove RGBEEncoding and RGBEFormat

* fix: remove gammaFactor and GammaEncoding

Mirrors mrdoob/three.js#23080

* fix: unmangle typo in RGBMLoader
0b5vr added a commit to 0b5vr/three-ts-types that referenced this pull request Feb 22, 2022
0b5vr added a commit to 0b5vr/three-ts-types that referenced this pull request Feb 22, 2022
THREE.RGBM16Encoding no longer exists, replacing this with RGBMLoader.setMaxRange( 16 )

See: mrdoob/three.js#23046
0b5vr added a commit to pixiv/three-vrm that referenced this pull request Feb 22, 2022
joshuaellis pushed a commit to three-types/three-ts-types that referenced this pull request Feb 22, 2022
* fix: remove RGBM7Encoding and RGBM16Encoding

See: mrdoob/three.js#23046

* test: fix materials-envmaps-hdr.ts

THREE.RGBM16Encoding no longer exists, replacing this with RGBMLoader.setMaxRange( 16 )

See: mrdoob/three.js#23046

* refactor: lint fix
Mercury21th000 pushed a commit to Mercury21th000/three-stdlib that referenced this pull request Nov 17, 2024
* fix: remove RGBM7Encoding and RGBM16Encoding

Mirrors mrdoob/three.js#23046

* fix(ColorSpaceNode): remove RGBDEncoding

Mirrors mrdoob/three.js#23049

* fix: remove RGBEEncoding and RGBEFormat

* fix: remove gammaFactor and GammaEncoding

Mirrors mrdoob/three.js#23080

* fix: unmangle typo in RGBMLoader
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.

2 participants