Commit Graph

119 Commits

Author SHA1 Message Date
SeanOMik f02d3c6b2f
render: create a transform pass for sending transforms to the GPU
CI / build (push) Failing after 3m33s Details
2024-11-01 11:05:51 -04:00
SeanOMik fae2cdfadc
lua: remove old implementation of world:view, replacing it with the new version
CI / build (pull_request) Failing after 4m7s Details
2024-10-29 23:20:52 -04:00
SeanOMik 076676e486
lua: write lua annotations for all queries and view one
CI / build (pull_request) Failing after 3m6s Details
2024-10-29 23:04:00 -04:00
SeanOMik 0e613bd216
lua: implement world:view_one for lua 2024-10-29 21:56:07 -04:00
SeanOMik 23a215ba46
lua: create LuaTickOfQuery 2024-10-29 09:32:32 -04:00
SeanOMik 7c2efe3c6f
lua: create LuaNotQuery 2024-10-29 08:48:30 -04:00
SeanOMik 8072ec1c7e
lua: create LuaHasQuery 2024-10-23 16:31:47 -04:00
SeanOMik 4dbd96832f
lua: add world:get_tick() to lua, write some missing type annotations
I tried to use generics to improve existing annotations, but I don't think it changed anything since the annotations for generics are kind of garbage
2024-10-21 21:58:22 -04:00
SeanOMik 2e33de5da2
lua: implement Changed query that supports components and resources 2024-10-20 21:20:43 -04:00
SeanOMik 380b15e560
lua: implement ecs queries that work with the new Views 2024-10-19 20:42:28 -04:00
SeanOMik 2ffdd4085b
lua: create `View`s that can query from the world 2024-10-19 17:45:59 -04:00
SeanOMik d001e136d0
lua: expose WorldTransform
CI / build (pull_request) Failing after 3m20s Details
2024-10-17 17:11:46 -04:00
SeanOMik 6a47cd2671
lua: expose DeviceEvent 2024-10-13 11:43:49 -04:00
SeanOMik 624cd5362f
lua: change lyra-scripting path in lyra-engine crate 2024-10-09 11:08:21 -04:00
SeanOMik eff6b221e0
remove unused code, cleanup some warnings 2024-10-09 10:56:54 -04:00
SeanOMik b90e19161d
lua: expose FreeFlyCamera 2024-10-07 16:28:38 -04:00
SeanOMik e9cbb48653
lua: expose camera, support ToLua and FromLua structs in World:view 2024-10-07 15:20:13 -04:00
SeanOMik 140ca506d6
lua: create type defs for World, Entity, ActionHandler, all asset handlers, add globals file 2024-10-04 23:48:58 -04:00
SeanOMik 06a4301c23
lua: create type defs for Vec2, Vec3, Vec4, Quat, Transform, and DeltaTime 2024-10-04 15:07:42 -04:00
SeanOMik de14b6211b
lua: create type defs for Window and start on Vec2 2024-10-03 19:07:11 -04:00
SeanOMik a2c52a0bb8
ecs: fix Changed query; lua: lock and hide mouse in window
CI / build (push) Failing after 3m10s Details
2024-10-02 21:29:13 -04:00
SeanOMik 76b7cac699
lua: expose most fields for window component 2024-10-02 20:54:54 -04:00
SeanOMik 64099f598c
fix ci test step
CI / build (push) Failing after 2m35s Details
2024-09-30 19:59:26 -04:00
SeanOMik ef2b0bf326
ecs,scripting: fix invalid resources being passed to lua
CI / build (pull_request) Failing after 3m35s Details
The issue was World::get_resource_ptr, it was returning a pointer to the AtomicRefCell instead of the actual resource data
2024-09-29 14:35:24 -04:00
SeanOMik fa22a0310c
scripting: switch to latest mlua, create custom impl of lua's `getmetatable` 2024-09-29 15:59:48 -04:00
SeanOMik 8fb686b7fe
scripting: switch to mlua, scripts need to be tested and fixed
currently the lua-scripting example doesnt work. For some reason the userdata's metatable is a boolean...
2024-09-28 12:32:37 -04:00
SeanOMik d6d6b2df72
game: improve event system 2024-09-27 21:03:57 -04:00
SeanOMik 8b1077cab7
engine: get a window showing and things rendered 2024-09-18 21:45:15 -04:00
SeanOMik 45fd190409
update wgpu and winit to latest versions
need to make a WinitPlugin though, so no window currently
2024-09-18 19:47:55 -04:00
SeanOMik 8545e7e27d
render: rewrite PCF for spot lights to somehow fix PCSS directional lights
CI / build (pull_request) Successful in 9m48s Details
2024-08-09 22:01:57 -04:00
SeanOMik a85178eeea Revert "render: shadow maps and PCF for spot lights"
This reverts commit 8c1738334c.
2024-08-09 21:51:56 -04:00
SeanOMik 8c1738334c
render: shadow maps and PCF for spot lights 2024-07-24 20:10:32 -04:00
SeanOMik fefcf58765
render: make shadow depth bias configurable per light source 2024-07-21 21:53:02 -04:00
SeanOMik fef709d5f1
render: implement PCF for point lights, support per-light shadow settings 2024-07-21 12:02:35 -04:00
SeanOMik 4449172c2b
render: implement PCSS for directional lights 2024-07-18 23:43:08 -04:00
SeanOMik 4c6c6c4dd5
render: PCF with poisson disc on directional lights 2024-07-14 22:14:08 -04:00
SeanOMik ff06bd55f3
render: simple PCF 2024-07-14 19:06:38 -04:00
SeanOMik b45c2f4fab
render: point light shadows in texture atlas, fix bug with unaligned GpuSlotBuffer 2024-07-13 00:56:09 -04:00
SeanOMik 40fa9c09da
render: fix shadow map atlas packing by writing my own skyline packer 2024-07-12 14:58:18 -04:00
SeanOMik 6d57b40629
render: cull back faces, code cleanup to fix warnings 2024-07-04 23:28:21 -04:00
SeanOMik fd65f754cf
render: get simple directional shadow maps working 2024-07-04 13:43:36 -04:00
SeanOMik 7ff67a194b
create an example for testing shadow maps 2024-06-28 16:15:21 -04:00
SeanOMik 6182a4b9c8
render: simplify light buffer updating 2024-06-15 23:52:46 -04:00
SeanOMik c846d52b0d
render: finally get meshes and entities rendering again with the render graph!
ci/woodpecker/pr/debug Pipeline failed Details
ci/woodpecker/pr/release Pipeline failed Details
2024-05-31 20:11:35 -04:00
SeanOMik bccf6287c0
render: get first image from RenderGraph, just a simple hard coded triangle
ci/woodpecker/pr/debug Pipeline failed Details
ci/woodpecker/pr/release Pipeline failed Details
2024-05-08 18:27:10 -04:00
SeanOMik daa6fc3d4b
move profiles to root workspace Cargo.toml so they aren't ignored 2024-05-08 18:25:12 -04:00
SeanOMik 669cc7590c
examples: remove some warnings
ci/woodpecker/push/debug Pipeline failed Details
2024-04-27 19:45:59 -04:00
SeanOMik 29c68abbbb
scripting: fix lua scripting (#13), create an example for it
ci/woodpecker/push/debug Pipeline failed Details
2024-04-27 00:52:47 -04:00
SeanOMik db501015d0
Create an example project to test transform interpolation 2024-04-24 00:30:30 -04:00
SeanOMik 8eac563229
render: significantly improve performance of TransformBuffers
Before the changes, a release build of 'many-lights' was running at about 130fps, now its 430fps
2024-04-21 00:54:45 -04:00