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 shadow fade #1960

Merged
merged 14 commits into from
Jan 17, 2024
Merged

Support shadow fade #1960

merged 14 commits into from
Jan 17, 2024

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, ...)

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 added the rendering Rendering related functions label Jan 10, 2024
@zhuxudong zhuxudong added this to the 1.2 milestone Jan 10, 2024
@zhuxudong zhuxudong self-assigned this Jan 10, 2024
@zhuxudong zhuxudong linked an issue Jan 10, 2024 that may be closed by this pull request
Copy link
Member

@GuoLei1990 GuoLei1990 left a comment

Choose a reason for hiding this comment

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

Add e2e

@GuoLei1990 GuoLei1990 added the enhancement New feature or request label Jan 16, 2024
/**
* Extract scale and bias from a fade distance to achieve a linear fading of the fade distance.
*/
static getScaleAndBiasForLinearDistanceFade(fadeDistance: number, border: number, outInfo: Vector4): void {
Copy link
Member

Choose a reason for hiding this comment

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

Add comments

 (P^2-N^2)/(F^2-N^2)

@GuoLei1990 GuoLei1990 merged commit 9d2e8ff into galacean:dev/1.2 Jan 17, 2024
6 checks passed
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
No open projects
Development

Successfully merging this pull request may close these issues.

Support shadow fall off
2 participants