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

Improve rendering for translucent objects #489

Closed
xeolabs opened this issue Dec 7, 2020 · 0 comments
Closed

Improve rendering for translucent objects #489

xeolabs opened this issue Dec 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@xeolabs
Copy link
Member

xeolabs commented Dec 7, 2020

Problem

Normal transparent objects are rendering too dark:

Screenshot from 2020-12-07 10-57-38

Solution

Use gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA) when rendering normal transparent objects (ie. objects that are simply transparent, not highlighted, selected or X-rayed).

Screenshot from 2020-12-07 10-59-14

@xeolabs xeolabs self-assigned this Dec 7, 2020
@xeolabs xeolabs added the enhancement New feature or request label Dec 7, 2020
@xeolabs xeolabs modified the milestones: 1.6.0, 1.5.2 Dec 7, 2020
@xeolabs xeolabs closed this as completed Dec 7, 2020
@xeolabs xeolabs changed the title Improve normal rendering for objects with opacity < 1 Improve rendering for translucent objects Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant