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

Support ior for PBRMaterial and glTF plugin #1487

Merged
merged 4 commits into from
Apr 23, 2023

Conversation

zhuxudong
Copy link
Member

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

image

image

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

@zhuxudong zhuxudong requested a review from GuoLei1990 April 21, 2023 08:26
@zhuxudong zhuxudong self-assigned this Apr 21, 2023
@zhuxudong zhuxudong changed the base branch from main to 0.9 April 21, 2023 08:28
@zhuxudong zhuxudong mentioned this pull request Apr 21, 2023
3 tasks
@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2023

Codecov Report

Patch coverage: 60.00% and project coverage change: +1.14 🎉

Comparison is base (69addf1) 40.71% compared to head (bf2e3c0) 41.85%.

❗ Current head bf2e3c0 differs from pull request most recent head db308e5. Consider uploading reports for the commit db308e5 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##              0.9    #1487      +/-   ##
==========================================
+ Coverage   40.71%   41.85%   +1.14%     
==========================================
  Files         350      351       +1     
  Lines       17892    17901       +9     
  Branches     2628     2630       +2     
==========================================
+ Hits         7284     7492     +208     
+ Misses       9966     9725     -241     
- Partials      642      684      +42     
Impacted Files Coverage Δ
packages/loader/src/gltf/parser/MaterialParser.ts 2.59% <0.00%> (-0.07%) ⬇️
packages/core/src/material/PBRMaterial.ts 85.00% <33.33%> (-9.12%) ⬇️
...es/loader/src/gltf/extensions/KHR_materials_ior.ts 60.00% <60.00%> (ø)
packages/rhi-webgl/src/WebGLRenderer.ts 57.89% <80.00%> (+19.98%) ⬆️

... and 18 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@GuoLei1990 GuoLei1990 added enhancement New feature or request Rendering Rendering related functions labels Apr 23, 2023
@GuoLei1990 GuoLei1990 changed the title Support ior in pbr Support ior for PBRMaterial and glTF plugin Apr 23, 2023
}

set ior(v: number) {
this.shaderData.setFloat(PBRMaterial._iorProp, v);
Copy link
Member

Choose a reason for hiding this comment

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

the min value is 1.0

@GuoLei1990 GuoLei1990 merged commit 348d74a into galacean:0.9 Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Rendering Rendering related functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants