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

switched PMREM to ShaderMaterial #23561

Merged
merged 1 commit into from
Feb 23, 2022
Merged

switched PMREM to ShaderMaterial #23561

merged 1 commit into from
Feb 23, 2022

Conversation

elalish
Copy link
Contributor

@elalish elalish commented Feb 23, 2022

Related issue: #23558

Description

@mrdoob; your last fix was still not working because it couldn't properly switch between WebGL1 and WebGL2: #23558 (comment)

I went ahead and did what @Mugen87 suggested; looks like my fears may have been baseless. Still, would be great to have a few more people test it out and do those pixel comparison images.

@mrdoob mrdoob added this to the r138 milestone Feb 23, 2022
@mrdoob mrdoob merged commit 525bfed into mrdoob:dev Feb 23, 2022
@mrdoob
Copy link
Owner

mrdoob commented Feb 23, 2022

Thanks!

@elalish elalish deleted the PMREMfix branch February 23, 2022 01:05
@@ -753,7 +751,7 @@ function _getBlurShader( lodMax, width, height ) {

function _getEquirectShader() {

const shaderMaterial = new RawShaderMaterial( {
const shaderMaterial = new ShaderMaterial( {
Copy link
Collaborator

Choose a reason for hiding this comment

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

_getEquirectShader() does not return a shader. It returns a material.

_getCommonVertexShader() returns a shader.

Copy link
Owner

Choose a reason for hiding this comment

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

Fixed: 28ce323

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mrdoob likewise _getCubemapShader()

Copy link
Owner

Choose a reason for hiding this comment

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

Fixed too: 1db78b8

donmccurdy pushed a commit to donmccurdy/three.js that referenced this pull request Mar 10, 2022
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