Fix issue with y UV translation. Fixes #2119.
This commit is contained in:
@@ -205,7 +205,7 @@ inline void SetMaterialTextureProperty(std::vector<int> &embeddedTexIdxs, Asset
|
||||
if (prop.textureTransformSupported) {
|
||||
aiUVTransform transform;
|
||||
transform.mTranslation.x = prop.TextureTransformExt_t.offset[0];
|
||||
transform.mTranslation.y = prop.TextureTransformExt_t.offset[0];
|
||||
transform.mTranslation.y = prop.TextureTransformExt_t.offset[1];
|
||||
transform.mRotation = prop.TextureTransformExt_t.rotation;
|
||||
transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
|
||||
transform.mScaling.y = prop.TextureTransformExt_t.scale[1];
|
||||
|
||||
Reference in New Issue
Block a user