ref: cae57ac561786c0e08f75f0ca21e7f0c61793939
parent: a1f3069a4ac76cd475d9434130490fe06f963856
author: Jacob Moody <moody@posixcafe.org>
date: Fri Aug 25 21:16:58 EDT 2023
more cleanup
--- a/src/render_software.c
+++ b/src/render_software.c
@@ -154,7 +154,7 @@
float _v = color.as_rgba.a * (1.0-p0.z) * FAR_PLANE * (2.0/255.0);
float _min = 0;
- float _max = 1;
+ float _max = 255;
color.as_rgba.a = _v > _max ? _max : _v < _min ? _min : _v;
line(sc0, sc1, color);
--- a/src/types.h
+++ b/src/types.h
@@ -46,7 +46,6 @@
vertex_t vertices[3];
} tris_t;
-
#define vec2(X, Y) ((vec2_t){X, Y})
#define vec3(X, Y, Z) ((vec3_t){X, Y, Z})
#define vec2i(X, Y) ((vec2i_t){X, Y})