added heightmap stride

This commit is contained in:
Jorijn van der Graaf 2025-05-26 00:35:51 +02:00
commit b1b4b4a44a
3 changed files with 13 additions and 16 deletions

View file

@ -50,7 +50,7 @@ int main() {
DescriptorSet<MeshVulkanShader, FragmentShader> descriptors;
HeightmapShader<HeightRGBA> meshShader(4, 4, 1, &camera);
HeightmapShader<HeightRGBA> meshShader(4, 2, 1, &camera);
for(uint32_t i = 0; i < 1*1*4*64; i++) {
meshShader.heights.value[i].height = -0.5;
meshShader.heights.value[i].r = 255;