diff options
author | Jonas Karlsson <[email protected]> | 2025-05-28 20:05:16 +0200 |
---|---|---|
committer | Jonas Karlsson <[email protected]> | 2025-05-28 21:11:51 +0200 |
commit | d45e71e9d59c4fe0b8557f90ef5045b815704e2a (patch) | |
tree | 45ff0e2d59adb925b17d8b8acc4c6c89664cdab1 /src/runtimerender/graphobjects | |
parent | 202b89413a3f7a1caedeae9262c03c7c5e03f6e8 (diff) |
Both Model and Lightmapper now have a texelsPerUnit property. The
default value is Lightmapper::texelsPerUnit, but if the Model's
property is > 0 then it will override the default for that specific
Model.
Deprecates QQuick3DModel::lightmapBaseResolution.
Removes the generateLightmapUV option from balsam.
[ChangeLog] Add Model::texelsPerUnit and Lightmapper::texelsPerUnit.
Deprecate Model::lightmapBaseResolution.
Change-Id: I6ddbe2e0c0948a4b06d07d758edc4d5a15947257
Reviewed-by: Kristoffer Skau <[email protected]>
Diffstat (limited to 'src/runtimerender/graphobjects')
-rw-r--r-- | src/runtimerender/graphobjects/qssgrendermodel_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/graphobjects/qssgrendermodel_p.h b/src/runtimerender/graphobjects/qssgrendermodel_p.h index 3b92b4c6..8abeb77a 100644 --- a/src/runtimerender/graphobjects/qssgrendermodel_p.h +++ b/src/runtimerender/graphobjects/qssgrendermodel_p.h @@ -63,7 +63,7 @@ struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderModel : public QSSGRenderNode bool castsReflections = true; bool usedInBakedLighting = false; QString lightmapKey; - uint lightmapBaseResolution = 0; + float texelsPerUnit = 0.0f; bool hasLightmap() const { return !lightmapKey.isEmpty(); } bool usesBoneTexture() const { return ((skin != nullptr) || (skeleton != nullptr)); } |