- transvert[currenttransvert].r = (byte) (bound(0, (int) (vr), 255));\
- transvert[currenttransvert].g = (byte) (bound(0, (int) (vg), 255));\
- transvert[currenttransvert].b = (byte) (bound(0, (int) (vb), 255));\
+ if (lighthalf)\
+ {\
+ transvert[currenttransvert].r = (byte) (bound(0, (int) (vr) >> 1, 255));\
+ transvert[currenttransvert].g = (byte) (bound(0, (int) (vg) >> 1, 255));\
+ transvert[currenttransvert].b = (byte) (bound(0, (int) (vb) >> 1, 255));\
+ }\
+ else\
+ {\
+ transvert[currenttransvert].r = (byte) (bound(0, (int) (vr), 255));\
+ transvert[currenttransvert].g = (byte) (bound(0, (int) (vg), 255));\
+ transvert[currenttransvert].b = (byte) (bound(0, (int) (vb), 255));\
+ }\