paysages3d/src/render/software/CanvasFragment.cpp
Michaël Lemaire 52bad18d26 Added "backface culling" and "previous fragment" in rasterizers
Backface culling speeds up rasterization
Previous fragment will be used later by vegetation rasterizer
2015-10-16 00:51:46 +02:00

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;
}