Commit Graph

1691 Commits

Author SHA1 Message Date
Glence df9cb11446 add to vel instead of setting it 2022-11-16 22:28:08 +08:00
Kah Wei 19bc90845f Added additional checks for SetProperty() of Material and MaterialInstance 2022-11-16 21:01:51 +08:00
Kah Wei 8869b42db2 Fixed memory corruption in SHSubpass 2022-11-16 21:00:27 +08:00
Kah Wei fe91f58d28 Fixed material inspector saving not saving the correct texture ID into the runtime material 2022-11-16 19:25:17 +08:00
Kah Wei c5bca4111b Fixed validation error caused by deleting empty batches 2022-11-16 19:23:26 +08:00
Kah Wei f0c09817ce EnsureBufferAndCopy utility functions now avoid resizes if new size is smaller or equal 2022-11-16 17:49:11 +08:00
Kah Wei 29b4465dfd Split pre-rendering tasks to a PrepareRenderRoutine 2022-11-16 17:48:15 +08:00
Sri Sham Haran edd44604f1 Merge branch 'main' into SP3-4-Editor 2022-11-16 17:47:36 +08:00
Sri Sham Haran 37e845336b Fix line draws for asset browser 2022-11-16 17:46:48 +08:00
Kah Wei 506b8836fe Materials now keep track of their modified state and associated MaterialInstances keep track of changes to their base 2022-11-16 17:46:36 +08:00
Sri Sham Haran 1bd7183231 Added validation for Renderable drag drop fields 2022-11-16 17:30:19 +08:00
XiaoQiDigipen 9c4c665fa8
Merge pull request #214 from SHADE-DP/SP3-1-MaterialUpdate
Fixed material property setting at runtime
2022-11-16 17:01:57 +08:00
Brandon Mak f991e7b227 Fixed some text shaders and changed some image parameters
- SHApplication has a font compiler exe call to test compiling a sample font
- SHVkImage now takes in a vector instead of a span for mip offsets (fuck it, copy the mip offset. The RAM can cry about it).
- Removed font data descriptor set layouts from graphics global data
- FONT_DATA set index is changed to 4 instead. This clashes with Render graph resource set index but it won't matter. 
- Added entity ID render graph resource to scene render graph
- SHFont format for images is now R8G8B8A8UNorm
2022-11-16 16:57:08 +08:00
Kah Wei 760c0386a9 Merge branch 'SP3-1-MaterialUpdate' into SP3-1-MaterialEditSupport
# Conflicts:
#	SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHMaterial.h
2022-11-16 16:45:22 +08:00
Kah Wei db7c4a6d38 Merge branch 'main' into SP3-1-MaterialUpdate 2022-11-16 16:40:15 +08:00
Kah Wei acae84d12c Fixed bug where creation of custom material instance for Renderables are not updated on the GPU 2022-11-16 16:38:04 +08:00
Kah Wei 3e3a66f261 Fixed memory corruption issue caused by SHMaterialInstance::SetMaterial() 2022-11-16 16:32:12 +08:00
XiaoQiDigipen 690ebef77d
Merge pull request #213 from SHADE-DP/SP3-4-Editor
Added Custom RigidBody Component View in Editor
2022-11-16 15:33:38 +08:00
XiaoQiDigipen b887a303ef
Merge pull request #212 from SHADE-DP/SP3-6-c-scripting
Added Audio class for playing audio from C#
2022-11-16 15:31:17 +08:00
Kah Wei 3a6f1f852b SHMaterialInstance::GetProperty() will now retrieve a property from the base material if it was not overriden 2022-11-16 15:29:11 +08:00
Sri Sham Haran ba39c02f9f Changed formatting slightly for RigidBody component view 2022-11-16 15:28:42 +08:00
Kah Wei dc9291bc01 Added Audio class for playing audio from C# 2022-11-16 15:00:56 +08:00
Kah Wei 3affaf426d WIP Runtime Material Editing support 2022-11-16 09:06:29 +08:00
Diren D Bharwani a9f77d666c Fixed compile error 2022-11-16 00:04:56 +08:00
Diren D Bharwani f172ccb744 Added Automass and Sleep check for Rigidbodies 2022-11-15 23:58:08 +08:00
Diren D Bharwani 1b2ff7f4a2 Expanded Collision Shape C# Interface 2022-11-15 23:57:38 +08:00
Sri Sham Haran 37aad49406 Added requested rigidbody component view with debug information
Changed DragVec controls to not push commands if ImGuiSliderFlags_ReadOnly is enabled
2022-11-15 21:09:24 +08:00
Brandon Mak 292fdf4ee2 Fixed some bugs but SHFont constructor still breaks
the vkImage is not loading correctly
2022-11-15 20:40:43 +08:00
XiaoQiDigipen ec215b944e
Merge pull request #211 from SHADE-DP/SP3-16-Math
Fixed Vector3.GetNormalised!!!!!!!
2022-11-15 19:27:27 +08:00
Glence 3f3770f74f now hard sets the vel instead of adding force 2022-11-15 18:52:46 +08:00
Diren D Bharwani a752bdb985 someone donno how to normalise sia 2022-11-15 18:45:58 +08:00
Diren D Bharwani a3d2f95aa0 Merge remote-tracking branch 'origin/main' into SP3-16-Math 2022-11-15 18:41:16 +08:00
Brandon Mak b6bae850bf Merge remote-tracking branch 'origin/main' into FontIntegration 2022-11-15 18:25:40 +08:00
Kah Wei 958310a8ea Renderable now shows the name of the mesh and material assigned instead of asset IDs 2022-11-15 18:16:07 +08:00
Kah Wei c69ad04f1e Added functions to get name of a backing asset from SHResourceManager 2022-11-15 18:15:49 +08:00
XiaoQiDigipen 4b70fbf0d6
Merge pull request #210 from SHADE-DP/SP3-8-serialization
Added serialization of component isActive
2022-11-15 18:15:23 +08:00
Diren D Bharwani cd164cc2d5 Merge remote-tracking branch 'origin/main' into SP3-2-Physics 2022-11-15 18:10:54 +08:00
Sri Sham Haran 93cded6ed9 Added serialization of component isActive 2022-11-15 17:04:52 +08:00
XiaoQiDigipen 0aaa493bcc
Merge pull request #209 from SHADE-DP/SP3-4-Editor
Editor fixes - Parenting of range selected entities, Component IsActive Checkbox, Scene Play/Pause behaviour, Gizmo controls
2022-11-15 16:37:09 +08:00
Sri Sham Haran 0e4d97da81 tooltip now reflects the correct keys 2022-11-15 16:28:46 +08:00
Diren D Bharwani f62fec77e3 Merge branch 'main' into SP3-2-Physics 2022-11-15 16:26:42 +08:00
Sri Sham Haran b0404bd59a Merge branch 'main' into SP3-4-Editor 2022-11-15 16:22:56 +08:00
Sri Sham Haran d3be8127cd [FIXED] Parenting of entities selected using Shift+Select
[FIXED] Component Active Checkbox not working for non reflected components
2022-11-15 16:22:48 +08:00
Diren D Bharwani d3103598f3 Removed old SHLog trace methods 2022-11-15 16:22:16 +08:00
Kah Wei 75f103c372 Setting pipeline of a material now triggers a reset of all properties for material instances based on the material 2022-11-15 15:58:38 +08:00
Diren D Bharwani 0c6cae5ec8 Merge remote-tracking branch 'origin/main' into SP3-2-Physics 2022-11-15 15:41:53 +08:00
Sri Sham Haran e7a66eed08 Merge branch 'main' into SP3-4-Editor 2022-11-15 15:12:16 +08:00
Xiao Qi f7cca42e59 Added shlog information source 2022-11-15 13:53:15 +08:00
Xiao Qi 96cb832e81 Font meta file and line in application to manually trigger font load 2022-11-15 13:48:54 +08:00
Xiao Qi 786e15771c Addedo control paths for font compilation and loading 2022-11-15 13:44:39 +08:00