czm_computePosition
Returns a position in model coordinates relative to eye taking into account the current scene mode: 3D, 2D, or Columbus view.
This uses standard position attributes, position3DHigh
,
position3DLow
, position2DHigh
, and position2DLow
,
and should be used when writing a vertex shader for an Appearance.
Returns:
vec4
The position relative to eye.
Example
vec4 p = czm_computePosition(); v_positionEC = (czm_modelViewRelativeToEye * p).xyz; gl_Position = czm_modelViewProjectionRelativeToEye * p;