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

Test babylon pbrmaterial #13268

Merged
merged 14 commits into from
Nov 21, 2022
Merged

Conversation

Dok11
Copy link
Contributor

@Dok11 Dok11 commented Nov 20, 2022

Hi!
I made some test cases for PBRMaterial.
One strange point — the getAnimatables don't return all possilbe textures, such metallic reflectance, reflectance, micro surface and refraction texture. So I added a note to the method JSDoc, and comment to the test case.

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@Popov72
Copy link
Contributor

Popov72 commented Nov 21, 2022

One strange point — the getAnimatables don't return all possilbe textures, such metallic reflectance, reflectance, micro surface and refraction texture

Maybe because they are not animatables? However, I don't know what means to have animations for a texture.

Or we have simply forgotten to add those textures. What do you think @sebavan ?

@Dok11
Copy link
Contributor Author

Dok11 commented Nov 21, 2022

@Popov72 but all basic textures are animatable

// packages/dev/core/src/Materials/Textures/baseTexture.ts
export class BaseTexture extends ThinTexture implements IAnimatable {

@RaananW RaananW requested a review from sebavan November 21, 2022 13:25
@sebavan sebavan merged commit 5cff512 into BabylonJS:master Nov 21, 2022
@sebavan
Copy link
Member

sebavan commented Nov 21, 2022

I am working on something for @Popov72 comment :-) trying to merge getAnimatable and getActiveTextures code in some ways. Will PR soon-ish

@Dok11
Copy link
Contributor Author

Dok11 commented Nov 21, 2022

I am working on something for @Popov72 comment :-) trying to merge getAnimatable and getActiveTextures code in some ways. Will PR soon-ish

@sebavan nice! And pay attention to what getAnimatable returns an IAnimatable interface, but in fact these are BaseTerxture & IAnimatable.

@Dok11 Dok11 deleted the test-babylon-pbrmaterial branch November 21, 2022 15:24
RaananW pushed a commit that referenced this pull request Dec 9, 2022
Test babylon pbrmaterial

Former-commit-id: dba2c7a14ba05aa5f0127ee6730ad772b46d2852
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