Skip to content

Commit

Permalink
Merge pull request #18 from unity/fix/texture-transform-offset
Browse files Browse the repository at this point in the history
Release 5.0.4 and texture transform offset fix
  • Loading branch information
atteneder authored and GitHub Enterprise committed Mar 30, 2023
2 parents 5ac03fd + f534cb6 commit 5c36f44
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.0.4] - 2023-03-30
### Fixed
- Texture transform offset is calculated correctly now

## [5.0.3] - 2023-03-29
### Fixed
- Update licensing (internal only)
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Export/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace GLTFast.Export
{
static class Constants
{
public const string version = "5.0.2";
public const string version = "5.0.4";

internal const string mimeTypePNG = "image/png";
internal const string mimeTypeJPG = "image/jpeg";
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Export/MaterialExportBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected static void ExportTextureTransform(TextureInfo def, UnityEngine.Materi
def.extensions.KHR_texture_transform = new TextureTransform
{
scale = new[] { scale.x, scale.y },
offset = new[] { offset.x, offset.y }
offset = new[] { offset.x, 1 - offset.y - scale.y }
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.atteneder.gltfast",
"version": "5.0.2",
"version": "5.0.4",
"displayName": "glTFast",
"description": "Use glTFast to import and export glTF 3D files efficiently at runtime or in the Editor",
"unity": "2019.4",
Expand Down

0 comments on commit 5c36f44

Please sign in to comment.