Skip to content

Same-plane splitting reftest #3102

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

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions wrench/reftests/split/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
#== cross.yaml cross-ref.yaml #TODO: investigate sub-pixel differences
== ordering.yaml ordering-ref.yaml
fuzzy(1,20) == near-plane.yaml near-plane.png
# Note: on windows the image is rendered at a slightly different spot.
# similarly, a lot of tests in "transform" are non-windows. TODO: investigate
platform(linux,mac) fuzzy(1,20) == same-plane.yaml same-plane.png
Binary file added wrench/reftests/split/same-plane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions wrench/reftests/split/same-plane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This test has a number of rectangles placed on the same transformed preserve3d plane.
# The expected result is that the rectangles are rendered in the order they are listed.
# This can fail if the primitives are considered outside of the main plane due
# to floating point precision issues in plane-splitting and transformation.
---
root:
items:
-
type: "stacking-context"
transform: rotate-y(30) rotate-x(75) translate(-100, 100, 0)
transform-style: preserve-3d
perspective: 400
items:
-
bounds: [0, 0, 450, 300]
type: rect
color: 0 255 0 1.0000
- type: stacking-context
bounds: [0, 0, 600, 600]
transform: translate(200, 0, 0)
items:
-
bounds: [-200, 0, 150, 300]
type: rect
color: 255 0 0 1.0000
- type: stacking-context
bounds: [0, 0, 600, 600]
transform: rotate-z(90)
items:
-
bounds: [0, 200, 150, 200]
type: rect
color: 0 0 255 1.0000