Dynamic lights on flats
This commit is contained in:
parent
fcbacf8cac
commit
4f7c1dfdf5
7 changed files with 69 additions and 9 deletions
|
|
@ -575,7 +575,7 @@ static void Draw1Column(int x, int y1, int y2, WallSampler &sampler, void(*draw1
|
|||
light.y = (float)(lightX * ViewTanCos + lightY * ViewTanSin) - dc_viewpos.Y;
|
||||
light.z = (float)lightZ;
|
||||
light.radius = 256.0f / cur_node->lightsource->GetRadius();
|
||||
light.color = 0xff000000 | (red << 16) | (green << 8) | blue;
|
||||
light.color = (red << 16) | (green << 8) | blue;
|
||||
|
||||
// Precalculate the constant part of the dot here so the drawer doesn't have to.
|
||||
light.x = light.x * light.x + light.y * light.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue