1 year ago
#382241
dreakzts
CubeMap direction issue in Vulkan
I am trying to use Vulkan to make a cubemap. I follow the key points in "https://github.com/SaschaWillems/Vulkan/blob/master/examples/texturecubemap/texturecubemap.cpp." And use the skybox pictures as attachment.
The issue is shown in the attachment as well. The directions of the top and bottom pictures aren't correct.
I am trying to rotate the points for the top and bottom squares as below.
{{-1, 1, -1}},
{{1, 1, -1}},
{{1, 1, 1}},
{{1, 1, 1}},
{{-1, 1, 1}},
{{-1, 1, -1}},
to
{{1, 1, -1}},
{{1, 1, 1}},
{{-1, 1, 1}},
{{-1, 1, 1}},
{{-1, 1, -1}},
{{1, 1, -1}},
but has no effect at all. Has someone met situation like this? Thanks! (I haven't met situation like this in OpenGL)
vulkan
0 Answers
Your Answer