Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
j9liu committed Aug 11, 2023
1 parent 7d2731d commit 60e6347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "Containers/Map.h"
#include "PixelFormat.h"
#include "TextureResource.h"
#include <CesiumGltf/FeatureIDTextureView.h>
#include <CesiumGltf/FeatureIdTextureView.h>
#include <CesiumGltf/PropertyTexturePropertyView.h>
#include <CesiumGltf/PropertyTextureView.h>
#include <CesiumUtility/Tracing.h>
Expand Down
6 changes: 4 additions & 2 deletions Source/CesiumRuntime/Private/CesiumGltfComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,14 @@ static void updateTextureCoordinatesForFeatureIds(
for (int64_t i = 0; i < indices.Num(); ++i) {
FStaticMeshBuildVertex& vertex = vertices[i];
uint32 vertexIndex = indices[i];
vertex.UVs[textureCoordinateIndex] = TMeshVector2(vertexIndex, 0.0f);
vertex.UVs[textureCoordinateIndex] =
TMeshVector2(static_cast<float>(vertexIndex), 0.0f);
}
} else {
for (int64_t i = 0; i < vertices.Num(); ++i) {
FStaticMeshBuildVertex& vertex = vertices[i];
vertex.UVs[textureCoordinateIndex] = TMeshVector2(i, 0.0f);
vertex.UVs[textureCoordinateIndex] =
TMeshVector2(static_cast<float>(i), 0.0f);
}
}
}
Expand Down

0 comments on commit 60e6347

Please sign in to comment.