Closed kring closed 7 months ago
Thanks @kring !
I think this is also needed for FeatureIdTexture
and PropertyTextureProperty
, which also subclass TextureInfo
.
Good catch @lilleyse. That probably means that FeatureIdTextureView
and PropertyTexturePropertyView
need to store the extension values, too, and apply them to the input UV coordinates.
These two texture types have custom classes,
MaterialOcclusionTextureInfo
andMaterialNormalTextureInfo
, but theKHR_texture_transform
extension was configured to only apply toTextureInfo
classes. The custom classes are derived fromTextureInfo
, but the code generator isn't that clever.The end result was that instances of
KHR_texture_transform
attached to an occlusion or normal texture showed up as an unknown extension (expressed as aJsonValue
) rather than asExtensionKhrTextureTransform
.