Archived
1
Fork 0
Commit graph

107 commits

Author SHA1 Message Date
100e1d7434 Reformat core module 2022-08-15 11:04:11 -04:00
4bb500d007 Fix stupid formatting warning, again 2022-08-15 10:17:31 -04:00
f787e04011 Remove unused camera exposure parameter 2022-08-15 10:14:37 -04:00
e7c157bb7b Choose 0.1 as a new reasonable default for camera near plane 2022-08-15 10:13:45 -04:00
c6da6e05ce Engine::create_empty_scene now returns the Scene it just created 2022-08-15 10:10:50 -04:00
ca2c2c9d3d Move all engine-specific models, materials etc. to a new base directory
This is a huge change, and basically breaks everything (as per usual!)

First of, this includes stuff like shaders so anything involving those
are broken and then fixed. A new BuildAssets cmake file is added to
aid in running AssetCompiler, and it seems to work fine on the engine
base assets.

The File API will eventually be revamped to handle this new way of
organizing the files and domains will eventually be gotten rid of all
together since I probably will replace it with game directory
priorities. As it stands right now, there isn't a way to easily
replace say - render_options.cfg with your own game-specific version.

Apple builds are probably broken by this commit (since I'm moving
around content and shader directories) to be fixed later.
2022-05-21 18:28:48 -04:00
55fea3e31c Output console commands into console output 2022-04-07 11:19:31 -04:00
eecc88ddcc Remove some debug messages 2022-04-04 08:22:25 -04:00
239ecc8d56 Revert "Another big WebGPU compatibility patch"
This reverts commit 3229c4fa2c.
2022-03-10 10:21:09 -05:00
3229c4fa2c Another big WebGPU compatibility patch
All specialization constants are removed (they cause trouble in
WebGPU, since they don't support array sizing, and it was a pain
in Metal anyway) - they are now macro defined. WebGPU now runs, although
push constant emulation is not implemented yet.
2022-03-07 00:33:44 -05:00
33680efe7b Appease MSVC 2022-03-04 19:17:07 -05:00
7f479b0e0b Properly copy data on macOS
This also fixes cfg init failing on macOS
2022-02-22 09:34:00 -05:00
e03d0eceac Add ability to load console commands from a cfg file 2022-02-21 17:37:27 -05:00
4f75d09eaf Move data folder into example directory 2022-02-21 17:37:10 -05:00
bc67dcce17 Make most render options accessible from console 2022-02-21 17:17:55 -05:00
8e360fa971 Fix MinGW compiler error 2022-02-21 15:29:32 -05:00
a3704eb7a9 Improve surface and gfx context creation
This is laying some groundwork for a much better way
of determining the best GFX api to use at runtime, and
making it easier to support more GFX backends in the future.
2022-02-21 11:03:34 -05:00
ed8adba8ff Change %lu -> %llu in debug menu 2022-02-21 00:15:02 -05:00
b0d875832d Add [[nodiscard]] to some more methods 2022-02-21 00:14:47 -05:00
d167471369 Reformat input.cpp 2022-02-20 23:41:40 -05:00
6935f85351 Start work on converting GFXMetal to metal-cpp 2022-02-15 11:25:13 -05:00
25ccd18595 Add keybind to toggle all imgui ui off 2022-02-15 09:01:52 -05:00
aac9e673ad Overhaul lighting and render debug menus 2022-02-08 09:17:44 -05:00
998c6f8bc2 Mark the material budget bar as an estimation 2022-02-08 09:11:22 -05:00
2c75d51278 Add parameters for metallic and roughness back
This also makes them modifiable in the debug menu at runtime
2022-02-08 08:50:10 -05:00
c6ccedb970 Add environment probe controls to debug menu 2022-02-08 08:32:58 -05:00
70c18ac169 Remove ImGui metrics window from showing on startup 2022-02-08 08:21:35 -05:00
c732a86df8 Improve debug light interface 2022-02-07 15:52:21 -05:00
e15d1c68f8 Add ability to select directory through imgui file picker 2022-02-01 20:53:47 +00:00
redstrate
ab814b7c78 Improve the look of console 2021-10-14 17:07:39 -04:00
redstrate
e79a98c7d2 Some minor code refactoring 2021-10-14 08:51:58 -04:00
redstrate
5226aa1200 Add hidden window flag, to be in line with how imgui's sdl backend works 2021-10-13 10:55:20 -04:00
redstrate
878ef9c5da Only enable viewports on multimodal apps (like the editors)
* Dragging out windows on games and stuff is pointless and just adds complexity
2021-10-12 11:47:13 -04:00
redstrate
fd4661088a Fix HiDPI support 2021-10-12 11:42:10 -04:00
redstrate
5915d0bf2c Fix imgui windows not resizing properly when undocked 2021-10-12 11:25:01 -04:00
redstrate
a2f81d7ca7 Allow better DPI handling under SDL, handle external resize events in imgui 2021-10-12 11:06:59 -04:00
redstrate
8205f65a8e Clean up a bunch of pass/backend code for imgui 2021-10-12 10:52:29 -04:00
redstrate
5a046ee27a Some changes to make gcc stop complaining 2021-10-12 10:27:03 -04:00
redstrate
5ba4285776 Add string handling to console arguments 2021-10-12 10:22:38 -04:00
redstrate
c6bc56d033 Change window handles into opaque pointers 2021-10-12 10:22:16 -04:00
redstrate
182fbe195a Add imgui open/save dialog 2021-10-11 13:39:15 -04:00
redstrate
6fde122401 Improve console interface 2021-10-07 17:55:14 -04:00
redstrate
9c8c257c43 Add new console debug window, handle text input under sdl 2021-10-07 17:46:28 -04:00
redstrate
529bc27702 Replace old logging and format system with fmt 2021-09-13 23:41:54 -04:00
redstrate
626e314ec2 Completely remove the defunct UI system 2021-09-13 23:10:26 -04:00
redstrate
b61eb98648 Fixes some clang-tidy warnings, remove fpermissive 2021-09-13 22:53:42 -04:00
redstrate
18bf9902e0 Reduce shadow and probe generation delay from 5->1 frames 2021-06-01 12:34:32 -04:00
redstrate
6d9cdfd969 Add configurable light size parameter to debug menu 2021-05-12 10:46:33 -04:00
redstrate
eab8a265f4 Add probe refresh timer (similiar to how shadows work) to generate probes correctly on scene load 2021-05-12 10:33:38 -04:00
redstrate
9951ffa58e Rename vecX -> floatX 2021-05-12 09:56:44 -04:00