added heightmap stride
This commit is contained in:
parent
ed82320381
commit
b1b4b4a44a
3 changed files with 13 additions and 16 deletions
2
main.cpp
2
main.cpp
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue