1767 Commits

Author SHA1 Message Date
yvt
070707c892
Implement the script side of the console window 2019-07-14 14:13:34 +09:00
yvt
a9edb61512
Add TextViewer.RemoveFirstLines
This method is used to remove old log lines from the console window.
2019-07-14 13:22:51 +09:00
yvt
3ca9948d50 Fix CScriptArray::RemoveRange
- The count parameters of `memmove` was incorrectly calculated.
- The use of `memmove` would be UB here because of region overlap.
2019-07-14 13:20:33 +09:00
yvt
c6edd641ca
Hide the console window when the escape key is pressed 2019-07-14 11:31:53 +09:00
yvt
d6f5370581
Add the console window (WIP) 2019-07-14 01:38:28 +09:00
yvt
b02ad53109 Add View::RunFrameLate
`IRenderer::{FrameDone, Flip}` are now called in `RunFrameLate` instead.
This makes it possible to create a `View` wrapping another `View` to
insert a new 2D drawing pass, which is necessary to render the system
console.
2019-07-14 00:29:36 +09:00
yvt
c37a013157 clang-format AngleScript source files
Unsurprisingly it doesn't support AngelScript, so the Java language mode
is used instead. The overall result seems good, but there's one problem:
Long statements starting with `@something = ` (object handle assignment)
are broken after the `@`. To work-around this, I had to set
`ColumnLimit` to `100`.
2019-07-13 23:45:47 +09:00
yvt
cb89824f32
clang-format 2019-06-09 13:44:05 +09:00
YVT
c2677c0465
Merge pull request #832 from otzade/fix-minimap
Fix minimap
2019-06-09 13:43:05 +09:00
YVT
1c1b883fe6
Merge pull request #833 from otzade/block
Use model for block cursor instead of debug lines
2019-05-27 11:28:42 +09:00
YVT
9455f8598f
Merge pull request #836 from devnexen/little_fix_proposals
Little code changes proposal.
2019-05-26 17:06:24 +09:00
David Carlier
6ef18bd0cd Little code changes proposal.
Modern C++ stricter with member initialisation order.
Destructor possibly throwing exception through assertions.
In debug mode, pretty important memory leak with zip archives.
2019-05-26 07:18:39 +01:00
otzade
ab83d7639b Merge remote-tracking branch 'upstream/master' into block 2019-05-26 00:53:38 +03:00
YVT
a5c8a59b51
Merge pull request #835 from yvt/fix-dlight
Fix issues with dynamic lights
2019-05-26 06:41:01 +09:00
yvt
431ad6efdd
GL: Fix point lights being discarded
(Hopefully) fixes #834.
2019-05-26 06:08:48 +09:00
yvt
7a9a2c5d96
GL: Sample D-light texture in a uniform control flow
(Hopefully) fixes the artifact mentioned in #834.
2019-05-26 05:56:30 +09:00
otzade
fabb3bd0ba Draw cursor inside block differently 2019-05-25 20:12:16 +03:00
yvt
4e9370e8b4
Fix forgetting to unlock a recursive_mutex before deleting 2019-05-26 00:55:54 +09:00
otzade
aeeca9331e Some more changes..
Cursor made emissive, unshaded
Yellow cursor is back, but less opaque
2019-05-25 17:11:55 +03:00
otzade
a1def7e762 Merge branch 'master' into block 2019-05-25 13:19:59 +03:00
yvt
31a153e711 Add "ghost" rendering
This commit adds new model rendering options
`ModelRenderParam::{ghost, opacity}`.

> Specifies that the model is not an actual object in the virtual world, 
> thus does not affect the shading of other objects and does not appear
> in a mirror.
> ...
> In exchange, it allows the use of an opacity value other than `1`.
2019-05-25 18:56:41 +09:00
yvt
831b25bc86
Fix shader compilation failure 2019-05-25 18:44:56 +09:00
yvt
51af48e98b
GL: Support emissive material 2019-05-25 16:24:46 +09:00
yvt
f75f55f33d
FallingBlock: Use the default material ID for generated VoxelModels 2019-05-25 15:42:51 +09:00
yvt
7147e735b7
SW: Support emissive material 2019-05-25 15:39:49 +09:00
yvt
25e9ad0143
Remove a possible debugging assertion that falsely aborts the program 2019-05-25 15:24:01 +09:00
yvt
c910bd4846
Remove Mutex, replacing their uses with std::{mutex, recursive_mutex} 2019-05-25 15:00:32 +09:00
yvt
76908188ab
Fix indentation 2019-05-25 14:32:52 +09:00
yvt
38e359d930
Include placeholder KV6 files in pak005-Models.pak 2019-05-25 14:30:34 +09:00
yvt
5e0cb27a4d
Add VoxelModelLoader
This new loader allows additional transformation on voxel models, e.g.,
setting a new origin point and replacing the material ID of all voxels,
based on a metadata file placed next to KV6 files.
2019-05-25 14:29:14 +09:00
yvt
6a39343daa
Introduce the concept of voxel material ID 2019-05-25 13:19:48 +09:00
yvt
7524bb608c
Remove ModelRenderParam::unlit 2019-05-25 13:06:41 +09:00
yvt
c31dc01032
Fix where the check for param.castShadow is performed 2019-05-25 12:44:00 +09:00
yvt
2ae2288034
Documentate 2019-05-25 12:39:06 +09:00
yvt
44f5dff416
Coding style: Initialize fields using default member initializers 2019-05-25 12:30:27 +09:00
yvt
ece13a6118
Support ModelRenderParam::castShadow 2019-05-25 12:22:04 +09:00
yvt
b10c943eed
Harden the model custom color check 2019-05-25 12:18:32 +09:00
yvt
4ffd817056
Add ModelRenderParam::{castShadow, unlit} 2019-05-25 12:10:51 +09:00
teodor6140
ab9521c6ff Some changes
Yellow cursor no longer visible, only shows at the ends of an !active block line
Normal block cursor is the one with the corners only
Solid frame cursor is used when making a line, the corners-only one doesn't look good on lines
2019-05-24 21:10:52 +03:00
teodor6140
843f1434e5 Make lines thinner (1/24) 2019-05-24 18:49:45 +03:00
teodor6140
2e3a433dab Use model for block cursor 2019-05-24 17:28:38 +03:00
teodor6140
88bcb0c8b9 Fix minimap
Don't draw other spectators.
Don't draw own spectator icon when following a player.
Fix this strange bug where everyone is white when spectating
2019-05-21 08:09:31 +03:00
YVT
53a7820ff8
Merge pull request #828 from NotAFile/extinfo-support
Add support for ExtInfo Packet
2019-05-20 00:23:23 +09:00
yvt
672c9b7718
Update comment style 2019-05-20 00:22:24 +09:00
yvt
6f59b7e3fd
clang-format 2019-05-20 00:18:56 +09:00
notafile
6e24902324 Remove accidental line, add comment 2019-05-19 17:07:57 +02:00
YVT
672edd9473
Merge pull request #831 from otzade/scoreboard-color
Highlight own name in scoreboard
2019-05-19 23:44:16 +09:00
NotAFile
a3e4810a18 Add support for ExtInfo Packet 2019-05-19 16:29:22 +02:00
YVT
d857ef88f1
Fix r_softParticles 2 not working 2019-05-19 23:19:48 +09:00
admiral general salam
cf3ba37b6e
Highlight own name in scoreboard 2019-05-19 17:06:53 +03:00