The project32
shader module is an extension of the project
shader module that adds some projection utilities.
32 bit implementation of the project_position_to_clipspace
interface.
vec4 project_position_to_clipspace(vec3 position, vec2 position64xyLow, vec3 offset)
vec4 project_position_to_clipspace(vec3 position, vec2 position64xyLow, vec3 offset, out vec4 worldPosition)
Parameters:
position
- vertex position in the layer's coordinate system.position64xyLow
- always ignoredoffset
- meter offset from the coordinateworldPosition
- projected position in the world space
Returns: Projected position in the clipspace.