diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 16:26:01 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 16:26:01 +0200 |
| commit | ec7be88fbb4062af20b77198007d815c321c2850 (patch) | |
| tree | 85fbe24dc79d2e8072990939f1e7e8de97a84e84 /src/light.cpp | |
| parent | 44c8e45d71e5320aedaa5b4b839e636a0d973f7f (diff) | |
wip vobj
Diffstat (limited to 'src/light.cpp')
| -rw-r--r-- | src/light.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/light.cpp b/src/light.cpp index 64da857b..e1dd00b9 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -4,7 +4,12 @@ namespace floormat { -light_proto::light_proto() = default; +light_proto::light_proto() +{ + pass = pass_mode::pass; + type = entity_type::light; +} + light_proto::light_proto(const light_proto&) = default; light_proto& light_proto::operator=(const light_proto&) = default; light_proto::~light_proto() noexcept = default; @@ -20,7 +25,7 @@ light::light(object_id id, struct chunk& c, const light_proto& proto) : float light::depth_offset() const { - constexpr auto ret = 4.f / tile_shader::depth_tile_size; + constexpr auto ret = 4 / tile_shader::depth_tile_size; return ret; } |
