Mercurial > games > semicongine
diff tests/test_gltf.nim @ 1278:772bb32c4368
replcae lodepng with stb_image, some cleanup
author | sam <sam@basx.dev> |
---|---|
date | Mon, 29 Jul 2024 00:00:28 +0700 |
parents | 4cf9872f7bb6 |
children | e0ba4aead324 |
line wrap: on
line diff
--- a/tests/test_gltf.nim Sun Jul 28 23:18:05 2024 +0700 +++ b/tests/test_gltf.nim Mon Jul 29 00:00:28 2024 +0700 @@ -29,7 +29,7 @@ emissive: Vec4f = NewVec4f(0, 0, 0, 0) # emissiveTexture: int32 = -1 MainDescriptors = object - materials: array[32, GPUValue[Material, UniformBuffer]] + materials: array[50, GPUValue[Material, UniformBuffer]] camera: GPUValue[Camera, UniformBufferMapped] Shader = object objectData {.PushConstantAttribute.}: ObjectData @@ -129,7 +129,7 @@ renderdata.AssignBuffers(primitive[0]) renderdata.AssignBuffers(descriptors) - var pipeline = CreatePipeline[Shader](renderPass = vulkan.swapchain.renderPass) + var pipeline = CreatePipeline[Shader](renderPass = vulkan.swapchain.renderPass, cullMode=[]) InitDescriptorSet(renderdata, pipeline.descriptorSetLayouts[0], descriptors) renderdata.FlushAllMemory()