summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/split/simple.yaml
blob: b6445780f5f9cb61b866669548a8b9f9e42943e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This tests a simple intersection of 2 rotated planes to split properly.
# If the split doesn't happen, we see a single-colored rectangle.
# If it does, the rectangle gets split vertically in 2 parts of different colors.
---
root:
  items:
    - type: stacking-context
      bounds: [0, 0, 1024, 1024]
      transform-style: preserve-3d
      items:
        - type: stacking-context
          bounds: [0, 0, 600, 600]
          transform: rotate-y(-60.0)
          items:
            - type: rect
              bounds: [0, 0, 600, 600]
              color: [255, 0, 0, 0.5]
        - type: stacking-context
          bounds: [0, 0, 600, 600]
          transform: rotate-y(60.0)
          items:
            - type: rect
              bounds: [0, 0, 600, 600]
              color: [0, 255, 0, 0.5]