working heightmap shader?

This commit is contained in:
Jorijn van der Graaf 2025-05-25 23:04:56 +02:00
commit fe15d3e8ca
15 changed files with 331 additions and 76 deletions

View file

@ -60,4 +60,27 @@ namespace Crafter {
float pad[2];
};
export struct __attribute__((packed)) VertexRGBA {
float x;
float y;
float z;
float w;
float r;
float g;
float b;
float a;
};
export struct __attribute__((packed)) HeightRGBA {
float height;
float pad[3];
float r;
float g;
float b;
float a;
};
}