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: Refactor creation of transmission render target. #23450

Merged
merged 2 commits into from
Feb 10, 2022

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 10, 2022

Related issue: #22731 (comment)

Description

This PR sets the size of the transmission render target to half of the drawing buffer's size. It also makes MeshPhysicalMaterial.transmission to a WebGL 2 only property so it's easier use mipmap generation. Besides, the transmission render target's texture now uses LinearFilter to its magFilter property.

The PR also fixes issue 5 in #22009.

@mrdoob mrdoob added this to the r138 milestone Feb 10, 2022
@mrdoob mrdoob merged commit 14bf577 into mrdoob:dev Feb 10, 2022
@mrdoob
Copy link
Owner

mrdoob commented Feb 10, 2022

Thanks!

donmccurdy pushed a commit to donmccurdy/three.js that referenced this pull request Mar 10, 2022
…ob#23450)

* WebGLRenderer: Refactor creation of transmission render target.

* Docs: Improve MeshPhysicalMaterial page.
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.

3 participants