mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-12 02:27:08 +00:00
triangle picking for Vulkan
Essentially a straight copypaste from the GL version. VS_Out picking isn't working correctly in the triangle path.
This commit is contained in:
@@ -139,7 +139,11 @@ void trianglePath(uint threadID)
|
||||
vec4 pos2 = meshpick.use_indices != 0u ? vb.data[ib.data[vertid2]] : vb.data[vertid2];
|
||||
#ifdef VULKAN
|
||||
if(meshpick.unproject == 1u)
|
||||
pos = vec4(pos.x, -pos.y, pos.z, pos.w);
|
||||
{
|
||||
pos0 = vec4(pos0.x, -pos0.y, pos0.z, pos0.w);
|
||||
pos1 = vec4(pos1.x, -pos1.y, pos1.z, pos1.w);
|
||||
pos2 = vec4(pos2.x, -pos2.y, pos2.z, pos2.w);
|
||||
}
|
||||
#endif
|
||||
|
||||
vec3 hitPosition;
|
||||
|
||||
Reference in New Issue
Block a user