Fixed texture path
This commit is contained in:
parent
29adb94aba
commit
bdf49d58f6
1 changed files with 3 additions and 3 deletions
|
|
@ -206,13 +206,13 @@ public:
|
||||||
{
|
{
|
||||||
models.object.loadFromFile(getAssetPath() + "models/lowpoly/deer.dae", vertexLayout, 1.0f, vulkanDevice, queue);
|
models.object.loadFromFile(getAssetPath() + "models/lowpoly/deer.dae", vertexLayout, 1.0f, vulkanDevice, queue);
|
||||||
if (deviceFeatures.textureCompressionBC) {
|
if (deviceFeatures.textureCompressionBC) {
|
||||||
textures.colorMap.loadFromFile(getAssetPath() + "models/voyager/deer_bc3_unorm.ktx", VK_FORMAT_BC3_UNORM_BLOCK, vulkanDevice, queue);
|
textures.colorMap.loadFromFile(getAssetPath() + "textures/deer_bc3_unorm.ktx", VK_FORMAT_BC3_UNORM_BLOCK, vulkanDevice, queue);
|
||||||
}
|
}
|
||||||
else if (deviceFeatures.textureCompressionASTC_LDR) {
|
else if (deviceFeatures.textureCompressionASTC_LDR) {
|
||||||
textures.colorMap.loadFromFile(getAssetPath() + "models/voyager/deer_astc_8x8_unorm.ktx", VK_FORMAT_ASTC_8x8_UNORM_BLOCK, vulkanDevice, queue);
|
textures.colorMap.loadFromFile(getAssetPath() + "textures/deer_astc_8x8_unorm.ktx", VK_FORMAT_ASTC_8x8_UNORM_BLOCK, vulkanDevice, queue);
|
||||||
}
|
}
|
||||||
else if (deviceFeatures.textureCompressionETC2) {
|
else if (deviceFeatures.textureCompressionETC2) {
|
||||||
textures.colorMap.loadFromFile(getAssetPath() + "models/voyager/deer_etc2_unorm.ktx", VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, vulkanDevice, queue);
|
textures.colorMap.loadFromFile(getAssetPath() + "textures/deer_etc2_unorm.ktx", VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, vulkanDevice, queue);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
vks::tools::exitFatal("Device does not support any compressed texture format!", "Error");
|
vks::tools::exitFatal("Device does not support any compressed texture format!", "Error");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue