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

Text transformation fixes #497

Merged
merged 1 commit into from Oct 30, 2016
Merged

Text transformation fixes #497

merged 1 commit into from Oct 30, 2016

Conversation

@kvark
Copy link
Member

kvark commented Oct 28, 2016

Fixes #427 well, mostly...
Looks like the transformed clips (#498) need to be implemented for this to work fully correct.

Also adds a bit of comments to GLSL code to understand what's going on (please check if I misunderstood stuff and documented it wrong!).

The errors spotted:

  1. layer.screen_vertices was fetched with wrong indices
  2. untransform would use undefined value of t if the layer plane is perpendicular to the view
  3. text vertex shaders were missing a division by vi.local_pos.z for the layer coordinates
  4. prim.local_rect was used for the text_run local rectangle, instead of local_rect

This change is Reviewable

… to text rendering.
@glennw
Copy link
Member

glennw commented Oct 30, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 30, 2016

📌 Commit 3304262 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 30, 2016

Testing commit 3304262 with merge 97e5a6e...

bors-servo added a commit that referenced this pull request Oct 30, 2016
Text transformation fixes

Fixes #427  well, mostly...
Looks like the transformed clips (#498) need to be implemented for this to work fully correct.

Also adds a bit of comments to GLSL code to understand what's going on (please check if I misunderstood stuff and documented it wrong!).

The errors spotted:
  1. `layer.screen_vertices` was fetched with wrong indices
  2. `untransform` would use undefined value of `t` if the layer plane is perpendicular to the view
  3. text vertex shaders were missing a division by `vi.local_pos.z` for the layer coordinates
  4. `prim.local_rect` was used for the text_run local rectangle, instead of `local_rect`

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/497)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 30, 2016

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 3304262 into servo:master Oct 30, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@kvark kvark deleted the kvark:text_transform branch Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.