- KHR_texture_transform
Tests if the KHR_texture_transform extension is supported for BaseColor.
- Display in SampleViewer
- Model Directory
This model demonstrates the usage of the KHR_texture_transform extension. There are six quads in this model using two main textures.
Note: Both textures have a gray border and use a sampler that clamps and disables mipmapping.
The top row tests different combinations of the offset parameter with UV coordinates of (0.0, 0.0)
to (0.5, 0.5)
and offsets of (0.5, 0.0)
, (0.0, 0.5)
, and (0.5, 0.5)
respectively from left to right, using the UV texture. A yellow image indicates that offset was not applied.
The bottom left quad tests the rotation parameter with UV coordinates of (0.0, 0.0)
to (1.0, 1.0)
and a rotation angle of 0.392699
radians or 22.5
degrees, using the arrow texture. The green marker indicates the correct rotation. The yellow marker indicates the rotation was not applied. The red marker indicates the rotation was applied in the opposite direction.
The bottom middle quad tests the scale parameter with UV coordinates of (0.0, 0.0)
to (1.0, 1.0)
and a scale of 1.5
, using the arrow texture. The green marker indicates the correct scale. The yellow marker indicates the scale was not applied.
The bottom right quad tests offset, rotation, and scale at the same time. If everything is supported correctly, the arrow should point to the green marker.
© 2018, Microsoft. CC0 1.0 Universal
- Microsoft for Everything