Skip to content

Commit 363f3af

Browse files
committed
review ndc to screen projection
1 parent 0b713cd commit 363f3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/external/rlsw.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ static inline void sw_blend_colors(float dst[4], float src[4])
10101010
static inline void sw_project_ndc_to_screen(float screen[2], const float ndc[4])
10111011
{
10121012
screen[0] = RLSW.vpPos[0] + (ndc[0] + 1.0f) * 0.5f * RLSW.vpDim[0];
1013-
screen[1] = RLSW.vpPos[1] + (ndc[1] + 1.0f) * 0.5f * RLSW.vpDim[1];
1013+
screen[1] = RLSW.vpPos[1] + (1.0f - ndc[1]) * 0.5f * RLSW.vpDim[1];
10141014
}
10151015

10161016

0 commit comments

Comments
 (0)