swap model

This commit is contained in:
nek0 2022-12-17 08:01:27 +01:00
parent c1d59c12f4
commit 94be0032cb
3 changed files with 14690 additions and 190891 deletions

14689
assets/cat_mask_cyberpunk.obj Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -80,7 +80,7 @@ initVulkan window = do
allocator <- initAllocator vulkanPhysicalDevice vulkanLogicalDevice vulkanInstance allocator <- initAllocator vulkanPhysicalDevice vulkanLogicalDevice vulkanInstance
mesh <- uploadMesh loadMeshes allocator mesh <- uploadMesh loadMeshes allocator
maskMesh <- loadFromObj "./assets/cat_mask_scaled.obj" allocator maskMesh <- loadFromObj "./assets/cat_mask_cyberpunk.obj" allocator
dimensions <- liftIO $ SDL.windowInitialSize <$> SDL.getWindowConfig window dimensions <- liftIO $ SDL.windowInitialSize <$> SDL.getWindowConfig window
(swapchain, surfaceFormat) <- (swapchain, surfaceFormat) <-