From 4df9f16be2350fe3ad59771c80e89caa33005a9c Mon Sep 17 00:00:00 2001 From: Andreas Atteneder Date: Thu, 30 Mar 2023 16:01:00 +0200 Subject: [PATCH 1/2] fix: Texture transform offset is calculated correctly now --- CHANGELOG.md | 4 ++++ Runtime/Scripts/Export/MaterialExportBase.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f939a13a..1742e3d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). +## [Unreleased] - +### Fixed +- Texture transform offset is calculated correctly now + ## [5.0.3] - 2023-03-29 ### Fixed - Update licensing (internal only) diff --git a/Runtime/Scripts/Export/MaterialExportBase.cs b/Runtime/Scripts/Export/MaterialExportBase.cs index 46b21e32..2a7f4bc1 100644 --- a/Runtime/Scripts/Export/MaterialExportBase.cs +++ b/Runtime/Scripts/Export/MaterialExportBase.cs @@ -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 } }; } } From f534cb6d46c49262b6271ce16531a46b90cdec0c Mon Sep 17 00:00:00 2001 From: Andreas Atteneder Date: Thu, 30 Mar 2023 16:04:00 +0200 Subject: [PATCH 2/2] Release 5.0.4 --- CHANGELOG.md | 2 +- Runtime/Scripts/Export/Constants.cs | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1742e3d3..36831e95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ 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). -## [Unreleased] - +## [5.0.4] - 2023-03-30 ### Fixed - Texture transform offset is calculated correctly now diff --git a/Runtime/Scripts/Export/Constants.cs b/Runtime/Scripts/Export/Constants.cs index 0a107142..f985c2aa 100644 --- a/Runtime/Scripts/Export/Constants.cs +++ b/Runtime/Scripts/Export/Constants.cs @@ -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"; diff --git a/package.json b/package.json index 420d95f9..f30bec37 100644 --- a/package.json +++ b/package.json @@ -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",