06_loading_models

command
v0.0.0-...-e956b62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 12 Imported by: 0

README

06_loading_models_win32

This basic Vulkan application follows the sixth chapter (Loading Models) of the excellent Vulkan Tutorial, building on the application at 05_depth_buffer. There is not much to be done, besides loading the OBJ file, that is different from the previous chapter. We load the OBJ model using gwob. See the loadModel function in vertex.go.

This program (and all of the samples) were built both as a guide to using Vulkan with Go, and as a basic validation and test of the go-vk binding. Barring any design updates in go-vk as we move towards a 1.0 release (e.g. struct member naming conventions), this project should not have any material changes.

Building

Before running, be sure to go generate in the project root. This will compile the shaders with glslc.exe. That compiler is bundled with the Vulkan SDK. The go:generate annotations can be found in main.go.

Viking room model by nigelgoh (CC BY 4.0). https://sketchfab.com/nigelgoh

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL