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

Add modified copy of PMREMGenerator, fix RoomEnvironment #1

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

donmccurdy
Copy link
Contributor

@donmccurdy donmccurdy commented Jan 2, 2025

Adds a modified copy of PMREMGenerator.js from three.js r162, updated to use
WebGL extension 'OES_texture_float', not 'OES_texture_half_float'. The latter
in unsupported in headless-gl: stackgl/headless-gl#234.

All modified lines of PMREMGenerator annotated as shown below:

begin:change <description of changes>
...
end:change
before after
test test_pmrem

Alternative fixes would have been either (a) implementing 'OES_texture_half_float' in headless-gl, or (b) updating THREE.PMREMGenerator upstream to choose between the two extensions as needed, but since we're not ready to upgrade past three.js r162 anyway, this seemed like the cleanest workaround.

@OpenDEM OpenDEM merged commit b80f9fa into OpenDEM:main Jan 2, 2025
1 check passed
@donmccurdy donmccurdy deleted the feat/pmremgenerator-fork branch January 2, 2025 12:36
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