Look for nodes like subsurface { clip { texture {} } }, and use
the clip to provide a source rectangle for subsetting the texture.
Update affected tests, and add a new one.
13 lines
258 B
Plaintext
13 lines
258 B
Plaintext
subsurface {
|
|
child: clip {
|
|
clip: 0 0 200 200;
|
|
child: transform {
|
|
transform: rotate(4);
|
|
child: texture {
|
|
texture: url('data:image/svg+xml;utf-8,<svg width="16" height="16"></svg>');
|
|
bounds: 0 0 16 16;
|
|
}
|
|
}
|
|
}
|
|
}
|