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, vec3 position64Low, vec3 offset)
vec4 project_position_to_clipspace(vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition)
Parameters:
position
- vertex position in the layer's coordinate system.position64Low
- lower part of the vertex position, calculated asaLow = a - Math.fround(a)
.offset
- offset from the coordinate, in common spacecommonPosition
- projected position in the common space
Returns: Projected position in the clipspace.