Skip to content

Commit

Permalink
fix: Incorrect texture transform calculation when using rotation (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Aug 30, 2022
1 parent 5a2bd49 commit af3a602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- (Export) Meshes with point topology are exported correctly now (#434)
- Incorrect texture transform calculation when using rotation (#413)

## [4.8.4] - 2022-08-26
### Changed
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Material/MaterialGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void TrySetTextureTransform(
material.SetVector(rotationPropertyId, Vector4.zero);
}

textureST.w -= textureST.y * cos; // move offset to move flip axis point (vertically)
textureST.w -= textureST.y; // move offset to move flip axis point (vertically)
}

if(texCoord!=0) {
Expand Down

0 comments on commit af3a602

Please sign in to comment.