OpenClonk
C4FoWBeamTriangle.h
Go to the documentation of this file.
1
/*
2
* OpenClonk, http://www.openclonk.org
3
*
4
* Copyright (c) 2014-2016, The OpenClonk Team and contributors
5
*
6
* Distributed under the terms of the ISC license; see accompanying file
7
* "COPYING" for details.
8
*
9
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
10
* See accompanying file "TRADEMARK" for details.
11
*
12
* To redistribute this file separately, substitute the full license texts
13
* for the above references.
14
*/
15
16
#ifndef C4FOWBEAMTRIANGLE_H
17
#define C4FOWBEAMTRIANGLE_H
18
22
class
C4FoWBeamTriangle
23
{
24
public
:
25
C4FoWBeamTriangle
() =
default
;
26
27
// whether this triangle is the last one in a row because the triangle
28
// that would normally be left/right of it is clipped
29
bool
clipLeft
{
false
},
clipRight
{
false
};
30
31
// Result of C4FoWLightSection::CalculateTriangles:
32
float
fanLX
,
fanLY
,
// left point of the triangle that has 100% light
33
fanRX
,
fanRY
,
// right point of the triangle that has 100% light
34
fadeLX
,
fadeLY
,
// left point of the quad in which the light fades out
35
fadeRY
,
fadeRX
;
// right point of the quad in which the light fades out
36
37
// Added by C4FoWLight::CalculateFanMaxed:
38
float
nfanLX
,
nfanLY
,
// left point of the triangle that has 100% light and normals aren't maxed-out
39
nfanRX
,
nfanRY
;
// right point of the triangle that has 100% light and normals aren't maxed-out
40
41
// Filled in by C4FoWLight::CalculateIntermediateFadeTriangles
42
float
fadeIX
,
fadeIY
;
// intermediate fade point filling the space between the fade quads
43
44
// whether the next triangle's edge is shorter than the edge of this one
45
bool
descending
;
46
};
47
48
#endif
C4FoWBeamTriangle
Definition:
C4FoWBeamTriangle.h:23
C4FoWBeamTriangle::fadeRX
float fadeRX
Definition:
C4FoWBeamTriangle.h:35
C4FoWBeamTriangle::fadeRY
float fadeRY
Definition:
C4FoWBeamTriangle.h:35
C4FoWBeamTriangle::fadeIY
float fadeIY
Definition:
C4FoWBeamTriangle.h:42
C4FoWBeamTriangle::nfanRX
float nfanRX
Definition:
C4FoWBeamTriangle.h:39
C4FoWBeamTriangle::fadeLX
float fadeLX
Definition:
C4FoWBeamTriangle.h:34
C4FoWBeamTriangle::descending
bool descending
Definition:
C4FoWBeamTriangle.h:45
C4FoWBeamTriangle::fadeIX
float fadeIX
Definition:
C4FoWBeamTriangle.h:42
C4FoWBeamTriangle::fanRY
float fanRY
Definition:
C4FoWBeamTriangle.h:33
C4FoWBeamTriangle::C4FoWBeamTriangle
C4FoWBeamTriangle()=default
C4FoWBeamTriangle::clipLeft
bool clipLeft
Definition:
C4FoWBeamTriangle.h:29
C4FoWBeamTriangle::nfanLY
float nfanLY
Definition:
C4FoWBeamTriangle.h:38
C4FoWBeamTriangle::nfanLX
float nfanLX
Definition:
C4FoWBeamTriangle.h:38
C4FoWBeamTriangle::clipRight
bool clipRight
Definition:
C4FoWBeamTriangle.h:29
C4FoWBeamTriangle::fadeLY
float fadeLY
Definition:
C4FoWBeamTriangle.h:34
C4FoWBeamTriangle::nfanRY
float nfanRY
Definition:
C4FoWBeamTriangle.h:39
C4FoWBeamTriangle::fanRX
float fanRX
Definition:
C4FoWBeamTriangle.h:33
C4FoWBeamTriangle::fanLX
float fanLX
Definition:
C4FoWBeamTriangle.h:32
C4FoWBeamTriangle::fanLY
float fanLY
Definition:
C4FoWBeamTriangle.h:32
openclonk
src
landscape
fow
C4FoWBeamTriangle.h
Generated on Fri May 16 2025 04:33:10 for OpenClonk by
1.9.1