Method ExportTextureTransform
ExportTextureTransform(TextureInfoBase, Material, int, IGltfWritable)
Calculates a texture's transform and adds a KHR_texture_transform glTF extension, if required
Declaration
protected static void ExportTextureTransform(TextureInfoBase def, Material mat, int texPropertyId, IGltfWritable gltf)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureInfoBase | def | glTF TextureInfo to edit |
| Material | mat | Source Material |
| int | texPropertyId | Texture property to fetch transformation from |
| IGltfWritable | gltf | Context glTF to export to (for registering extension usage) |