testsuite: Add testcase for z clipping

the near and far clipping plane are at -10000 and 10000 respectively.
Test that the renderers respect that.
This commit is contained in:
Benjamin Otte
2023-05-16 17:29:31 +02:00
parent 099955b0c0
commit fde3d2cd50
3 changed files with 29 additions and 0 deletions

View File

@@ -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);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

View File

@@ -88,6 +88,7 @@ compare_render_tests = [
'texture-url',
'transform-in-transform',
'transform-in-transform-in-transform',
'z-transform-clipping-bounds-3d',
]
# these are too sensitive to differences in the renderers