소스 검색

round screen coordinate (line rasterization)

pull/4832/head
Bigfoot71 2 달 전
부모
커밋
633e34e457
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      src/external/rlsw.h

+ 4
- 4
src/external/rlsw.h 파일 보기

@ -2067,10 +2067,10 @@ static inline bool sw_line_project_and_clip(sw_vertex_t* v0, sw_vertex_t* v1)
#define DEFINE_LINE_RASTER(FUNC_NAME, ENABLE_DEPTH_TEST, ENABLE_COLOR_BLEND) \
static inline void FUNC_NAME(const sw_vertex_t* v0, const sw_vertex_t* v1) \
{ \
int x1 = (int)v0->screen[0]; \
int y1 = (int)v0->screen[1]; \
int x2 = (int)v1->screen[0]; \
int y2 = (int)v1->screen[1]; \
int x1 = (int)p">(v0->screen[0] + 0.5f); \
int y1 = (int)p">(v0->screen[1] + 0.5f); \
int x2 = (int)p">(v1->screen[0] + 0.5f); \
int y2 = (int)p">(v1->screen[1] + 0.5f); \
\
float z1 = v0->homogeneous[2]; \
float z2 = v1->homogeneous[2]; \

불러오는 중...
취소
저장