Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 737 Bytes

project32.md

File metadata and controls

23 lines (14 loc) · 737 Bytes

project32 (Shader Module)

The project32 shader module is an extension of the project shader module that adds some projection utilities.

GLSL Functions

project_position_to_clipspace

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 ignored
  • offset - meter offset from the coordinate
  • worldPosition - projected position in the world space

Returns: Projected position in the clipspace.