Fix issue with y UV translation. Fixes #2119.
parent
929d83398d
commit
7230f32c14
|
@ -205,7 +205,7 @@ inline void SetMaterialTextureProperty(std::vector<int> &embeddedTexIdxs, Asset
|
||||||
if (prop.textureTransformSupported) {
|
if (prop.textureTransformSupported) {
|
||||||
aiUVTransform transform;
|
aiUVTransform transform;
|
||||||
transform.mTranslation.x = prop.TextureTransformExt_t.offset[0];
|
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.mRotation = prop.TextureTransformExt_t.rotation;
|
||||||
transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
|
transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
|
||||||
transform.mScaling.y = prop.TextureTransformExt_t.scale[1];
|
transform.mScaling.y = prop.TextureTransformExt_t.scale[1];
|
||||||
|
|
Loading…
Reference in New Issue