mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-21 20:39:57 +01:00
Add check
This commit is contained in:
parent
97967e6af0
commit
40739dbb5e
2 changed files with 6 additions and 3 deletions
|
@ -1196,9 +1196,11 @@ void S3L_drawTriangle(
|
||||||
p.modelID = modelID;
|
p.modelID = modelID;
|
||||||
p.triangleID = triangleID;
|
p.triangleID = triangleID;
|
||||||
|
|
||||||
|
#if !S3L_STRICT_NEAR_CULLING
|
||||||
point0.z = point0.z >= S3L_NEAR ? point0.z : S3L_NEAR;
|
point0.z = point0.z >= S3L_NEAR ? point0.z : S3L_NEAR;
|
||||||
point1.z = point1.z >= S3L_NEAR ? point1.z : S3L_NEAR;
|
point1.z = point1.z >= S3L_NEAR ? point1.z : S3L_NEAR;
|
||||||
point2.z = point2.z >= S3L_NEAR ? point2.z : S3L_NEAR;
|
point2.z = point2.z >= S3L_NEAR ? point2.z : S3L_NEAR;
|
||||||
|
#endif
|
||||||
|
|
||||||
S3L_Vec4 *tPointPP, *lPointPP, *rPointPP; /* points in projction plane space
|
S3L_Vec4 *tPointPP, *lPointPP, *rPointPP; /* points in projction plane space
|
||||||
(in Units, normalized by
|
(in Units, normalized by
|
||||||
|
|
|
@ -10,9 +10,10 @@
|
||||||
|
|
||||||
//#define S3L_PRESET_HIGHEST_QUALITY
|
//#define S3L_PRESET_HIGHEST_QUALITY
|
||||||
|
|
||||||
#define S3L_PERSPECTIVE_CORRECTION 1
|
#define S3L_STRICT_NEAR_CULLING 0
|
||||||
#define S3L_Z_BUFFER 1
|
#define S3L_PERSPECTIVE_CORRECTION 0
|
||||||
#define S3L_SORT 0
|
#define S3L_SORT 1
|
||||||
|
#define S3L_Z_BUFFER 0
|
||||||
|
|
||||||
#define S3L_PIXEL_FUNCTION drawPixel
|
#define S3L_PIXEL_FUNCTION drawPixel
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue