forked from WolvenKit/WolvenKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFog.h
93 lines (79 loc) · 1.76 KB
/
Fog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
#include "stdafx.h"
using namespace irr;
using namespace System;
namespace IrrlichtLime {
namespace Video {
public ref class Fog
{
public:
Color^ Color;
FogType Type;
float Start;
float End;
float Density;
bool PixelFog;
bool RangeFog;
Fog(Video::Color^ color, FogType type, float start, float end, float density, bool pixelFog, bool rangeFog)
: Color(color)
, Type(type)
, Start(start)
, End(end)
, Density(density)
, PixelFog(pixelFog)
, RangeFog(rangeFog) {}
Fog(Video::Color^ color, FogType type, float start, float end, float density, bool pixelFog)
: Color(color)
, Type(type)
, Start(start)
, End(end)
, Density(density)
, PixelFog(pixelFog)
, RangeFog(false) {}
Fog(Video::Color^ color, FogType type, float start, float end, float density)
: Color(color)
, Type(type)
, Start(start)
, End(end)
, Density(density)
, PixelFog(false)
, RangeFog(false) {}
Fog(Video::Color^ color, FogType type, float start, float end)
: Color(color)
, Type(type)
, Start(start)
, End(end)
, Density(0.01f)
, PixelFog(false)
, RangeFog(false) {}
Fog(Video::Color^ color, FogType type)
: Color(color)
, Type(type)
, Start(50.0f)
, End(100.0f)
, Density(0.01f)
, PixelFog(false)
, RangeFog(false) {}
Fog(Video::Color^ color)
: Color(color)
, Type(FogType::Linear)
, Start(50.0f)
, End(100.0f)
, Density(0.01f)
, PixelFog(false)
, RangeFog(false) {}
Fog()
: Color(gcnew Video::Color(255, 255, 255, 0))
, Type(FogType::Linear)
, Start(50.0f)
, End(100.0f)
, Density(0.01f)
, PixelFog(false)
, RangeFog(false) {}
virtual String^ ToString() override
{
return String::Format("Fog: Type={0}; Color={1}", Type, Color);
}
};
} // end namespace Video
} // end namespace IrrlichtLime