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

Optimization Transform direction related API #1381

Merged
merged 6 commits into from
Feb 22, 2023

Conversation

GuoLei1990
Copy link
Member

@GuoLei1990 GuoLei1990 commented Feb 22, 2023

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)

Improve the usability of transform API:

  • getWorldForward(forward: Vector3) -> get worldForward
  • getWorldRight(right: Vector3) -> get worldRight
  • getWorldUp(up: Vector3) -> get worldUp
  • Fix cull bug

@GuoLei1990 GuoLei1990 added enhancement New feature or request breaking breaking change labels Feb 22, 2023
@GuoLei1990 GuoLei1990 added this to the 1.0 milestone Feb 22, 2023
@GuoLei1990 GuoLei1990 self-assigned this Feb 22, 2023
@GuoLei1990 GuoLei1990 changed the title Optimization transform API Optimization transform direction related API Feb 22, 2023
@GuoLei1990 GuoLei1990 changed the title Optimization transform direction related API Optimization Transform direction related API Feb 22, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2023

Codecov Report

Base: 40.71% // Head: 41.93% // Increases project coverage by +1.22% 🎉

Coverage data is based on head (77ee079) compared to base (08aaa77).
Patch coverage: 73.33% of modified lines in pull request are covered.

❗ Current head 77ee079 differs from pull request most recent head 21f4190. Consider uploading reports for the commit 21f4190 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             @@
##           dev/1.0    #1381      +/-   ##
===========================================
+ Coverage    40.71%   41.93%   +1.22%     
===========================================
  Files          351      351              
  Lines        17788    17785       -3     
  Branches      2605     2608       +3     
===========================================
+ Hits          7242     7458     +216     
+ Misses        9896     9633     -263     
- Partials       650      694      +44     
Impacted Files Coverage Δ
packages/core/src/lighting/DirectLight.ts 19.23% <0.00%> (+1.37%) ⬆️
packages/core/src/lighting/SpotLight.ts 10.20% <0.00%> (+0.40%) ⬆️
...ckages/core/src/shadow/CascadedShadowCasterPass.ts 29.67% <0.00%> (+16.41%) ⬆️
packages/core/src/Camera.ts 50.76% <100.00%> (+20.30%) ⬆️
packages/core/src/Transform.ts 57.92% <100.00%> (+5.48%) ⬆️
packages/core/src/Scene.ts 70.55% <0.00%> (+1.11%) ⬆️
packages/core/src/shadow/ShadowUtils.ts 3.20% <0.00%> (+1.28%) ⬆️
packages/math/src/Vector2.ts 79.31% <0.00%> (+1.72%) ⬆️
packages/core/src/Component.ts 81.39% <0.00%> (+2.32%) ⬆️
packages/core/src/Engine.ts 82.69% <0.00%> (+2.88%) ⬆️
... and 13 more

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@cptbtptpbcptdtptp cptbtptpbcptdtptp left a comment

Choose a reason for hiding this comment

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

+1

@GuoLei1990 GuoLei1990 merged commit 0522015 into galacean:dev/1.0 Feb 22, 2023
GuoLei1990 added a commit to GuoLei1990/galacean-engine that referenced this pull request Mar 2, 2023
…xt-restore

* commit 'add6e916a8327e492f8fec16bc0e7cd543a59566':
  Move font map cache from `Font` to `Engine` (galacean#1387)
  "v1.0.0-alpha.0"
  glTF parse support custom extsnions and parser (galacean#1008)
  Optimization `Transform` direction related API (galacean#1381)
  refactor: opt code
  refactor: opt code
  refactor: opt code
  refactor: opt code
  refactor: opt code
  feat: refactor transform API
  Add `toJSON` in base math class (galacean#1380)
GuoLei1990 added a commit to GuoLei1990/galacean-engine that referenced this pull request Mar 16, 2023
* dev/1.0: (41 commits)
  fix: package.json
  Support device lost  (galacean#1374)
  "v0.9.0-beta.70"
  fix: add shadow parser (galacean#1411)
  Add `toJSON` in base math class (galacean#1380) (galacean#1409)
  refactor(particle): Add an infinite bounding box to the particle system and it will never be clipped (galacean#1410)
  "v0.9.0-beta.69"
  Fix glTF SkinnedMeshRenderer default local bounds (galacean#1405)
  Support shader replacement and sub shader (galacean#1394)
  Fix camera cull bug (galacean#1396)
  "v0.9.0-beta.68"
  fix: InputManager default listener target
  "v0.9.0-beta.67"
  Fix shader compile performance on some windows device (galacean#1390)
  Move font map cache from `Font` to `Engine` (galacean#1387)
  "v1.0.0-alpha.0"
  glTF parse support custom extsnions and parser (galacean#1008)
  Optimization `Transform` direction related API (galacean#1381)
  refactor: opt code
  refactor: opt code
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants