Browse Source

review ndc to screen projection

pull/4832/head
Bigfoot71 2 weeks ago
parent
commit
363f3afa60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/external/rlsw.h

+ 1
- 1
src/external/rlsw.h View File

@ -1010,7 +1010,7 @@ static inline void sw_blend_colors(float dst[4], float src[4])
static inline void sw_project_ndc_to_screen(float screen[2], const float ndc[4])
{
screen[0] = RLSW.vpPos[0] + (ndc[0] + 1.0f) * 0.5f * RLSW.vpDim[0];
screen[1] = RLSW.vpPos[1] + (ndc[1] + 1.0f) * 0.5f * RLSW.vpDim[1];
screen[1] = RLSW.vpPos[1] + (mf">1.0f - ndc[1]) * 0.5f * RLSW.vpDim[1];
}

Loading…
Cancel
Save