diff options
author | Benjamin Otte <otte@redhat.com> | 2023-05-16 17:29:31 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-05-16 18:53:27 +0200 |
commit | fde3d2cd50585ec2abef1313fbf4cd189c88a2a1 (patch) | |
tree | bf962e8f08004a7b1ec2b4fda89f510825818e05 /testsuite/gsk/compare | |
parent | 099955b0c06dbddc9469bd3c8e63673a3a82883f (diff) | |
download | gtk+-fde3d2cd50585ec2abef1313fbf4cd189c88a2a1.tar.gz |
testsuite: Add testcase for z clipping
the near and far clipping plane are at -10000 and 10000 respectively.
Test that the renderers respect that.
Diffstat (limited to 'testsuite/gsk/compare')
-rw-r--r-- | testsuite/gsk/compare/z-transform-clipping-bounds-3d.node | 28 | ||||
-rw-r--r-- | testsuite/gsk/compare/z-transform-clipping-bounds-3d.png | bin | 0 -> 331 bytes |
2 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gsk/compare/z-transform-clipping-bounds-3d.node b/testsuite/gsk/compare/z-transform-clipping-bounds-3d.node new file mode 100644 index 0000000000..ebd4b09bd9 --- /dev/null +++ b/testsuite/gsk/compare/z-transform-clipping-bounds-3d.node @@ -0,0 +1,28 @@ +transform { + transform: translate3d(0, 0, -10000); + child: color { + bounds: 0 0 50 50; + color: rgb(255,0,0); + } +} +transform { + transform: translate3d(0, 0, -10001); + child: color { + bounds: 50 0 50 50; + color: rgb(255,255,0); + } +} +transform { + transform: translate3d(0, 0, 10000); + child: color { + bounds: 0 50 50 50; + color: rgb(0,255,0); + } +} +transform { + transform: translate3d(0, 0, 10001); + child: color { + bounds: 50 50 50 50; + color: rgb(0,0,255); + } +} diff --git a/testsuite/gsk/compare/z-transform-clipping-bounds-3d.png b/testsuite/gsk/compare/z-transform-clipping-bounds-3d.png Binary files differnew file mode 100644 index 0000000000..433e3c560f --- /dev/null +++ b/testsuite/gsk/compare/z-transform-clipping-bounds-3d.png |