985 B
985 B
Assets & Paths
-
Default locations
assets/for models/textures andshaders/for GLSL live at the repo root.- The engine auto‑detects these folders by walking up from the working directory.
-
Override root via environment
- Set
VKG_ASSET_ROOTto a directory containingassets/and/orshaders/. - Example:
VKG_ASSET_ROOT=/home/user/vulkan-engine ./bin/vulkan_engine
- Set
-
API
- Use
AssetLocatorthroughEngineContext::getAssets()helpers:shaderPath("name.spv")resolves a shader.assetPath("relative/or/absolute")resolves runtime assets.modelPath("some.glb")is an alias forassetPath.
- Use
-
Sample content
- The engine loads
assets/police_office.glbby default inVulkanEngine::init(). - Ensure this file (and any textures it references) exists under your asset root, or adjust the path used by the sample scene.
- The engine loads
-
Materials & sRGB
- See
docs/asset_manager.mdfor mesh/material creation and sRGB/UNORM handling.
- See