1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-12-22 01:26:17 +01:00

Add comments

This commit is contained in:
Miloslav Číž 2019-06-23 00:29:05 +02:00
parent f2a9fd18f4
commit 8aa68d6187

View file

@ -2080,7 +2080,14 @@ void S3L_drawTriangle(
#endif
#if S3L_PERSPECTIVE_CORRECTION == 2
S3L_FastLerpState depthPC, b0PC, b1PC;
S3L_FastLerpState
depthPC, // interpolates depth between row segments
b0PC, // interpolates barycentric0 between row segments
b1PC; // interpolates barycentric1 between row segments
/* ^ These interpolate values between row segments (lines of pixels
of S3L_PC_APPROX_LENGTH length). After each row segment perspective
correction is recomputed. */
depthPC.valueScaled =
(Z_RECIP_NUMERATOR /