Michaël Lemaire
52bad18d26
Backface culling speeds up rasterization Previous fragment will be used later by vegetation rasterizer
12 lines
348 B
C++
12 lines
348 B
C++
#include "CanvasFragment.h"
|
|
|
|
CanvasFragment::CanvasFragment(bool front_facing, const Vector3 &pixel, const Vector3 &location, int client, bool opaque):
|
|
opaque(opaque), front_facing(front_facing), pixel(pixel), location(location), client(client)
|
|
{
|
|
color = COLOR_WHITE;
|
|
}
|
|
|
|
void CanvasFragment::setColor(const Color &col)
|
|
{
|
|
color = col;
|
|
}
|