Fix sphere winding and viewport middle-pan input
This commit is contained in:
@@ -865,7 +865,10 @@ LoadResult CreateBuiltinMeshResource(const Containers::String& path) {
|
||||
return LoadResult(Containers::String("Unsupported builtin mesh: ") + path);
|
||||
}
|
||||
|
||||
FlipTriangleWinding(buffers);
|
||||
// The UV sphere generator already emits triangles in the runtime's front-face convention.
|
||||
if (primitiveType != BuiltinPrimitiveType::Sphere) {
|
||||
FlipTriangleWinding(buffers);
|
||||
}
|
||||
|
||||
Mesh* mesh = BuildMeshResource(path, GetBuiltinPrimitiveDisplayName(primitiveType), std::move(buffers));
|
||||
if (mesh == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user