VulkanSceneGraph Positional State and Primitive Clipping
Channel: Robert Osfield
Date: 2021-05-10

This video shows the new vsgclip example running on OpenStreetMap paged database, demonstrating clipping a  whole earth, paged terrain to clipping sphere.  


The clipping is done by the GPU's primitive clipping, with the clip distance (gl_ClipDistance[0]) computed in the vertex shader by transforming mesh vertices into eye space then computing the distance from the center of a sphere's surface.  


The center of sphere is transformed from model coordinates into eye coordinates each frame and then pass in eye coordinates to the GPU. 



#VulkanSceneGraph, #Vulkan, #Clipping, #OoenStreetMap, #Paging