Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGarbled rendering of transformed content #427
Closed
Comments
|
#431 fixes the text being garbled. However, we need to add support for transformed clip rects to close this bug completely - I'll try to work on that in the next week or two. |
|
Looking into this... |
bors-servo
added a commit
that referenced
this issue
Oct 25, 2016
Fixed a number of smoothstep() UB cases in the shaders Fixed the red rectangle in #427, but the text is still broken (to be addressed later). The change is similar to b89ecd1, now all `smoothstep` calls should be correct. <!-- 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/474) <!-- Reviewable:end -->
This was referenced Oct 28, 2016
bors-servo
added a commit
that referenced
this issue
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
added a commit
that referenced
this issue
Oct 31, 2016
Local rectangle clipping for transformed primitives Finishes #427 implementation, now the text is cut evenly and not aligned to tile borders. Also refactored `build_bounding_rect()` as well as a bit of `assign_prims_to_screen_tiles()`.  <!-- 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/502) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



http://people.mozilla.org/~jmuizelaar/servo/clipped-rotate.html renders badly on OS X