24 lines
798 B
YAML
24 lines
798 B
YAML
# 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]
|