Commit Graph

52 Commits

Author SHA1 Message Date
Jarrod Doyle af0ab3bb66
Add basic CPU to GPU streaming system 2023-05-03 14:44:42 +01:00
Jarrod Doyle 3fb089d392
Remove unnecessary New function from Brickmap uniform struct 2023-04-29 14:51:35 +01:00
Jarrod Doyle b51f0b42e2
Revert brickmap sphere colour changes 2023-04-29 14:50:59 +01:00
Jarrod Doyle b857b5a157
Rewrite raycast shader to take larger steps when encountering empty chunks 2023-04-29 14:48:24 +01:00
Jarrod Doyle 63e1fd94bd
Simple framerate logging 2023-04-29 10:30:49 +01:00
Jarrod Doyle 2555ec55b4
Start work on brickgrids 2023-04-25 13:54:33 +01:00
Jarrod Doyle 4091686b09
More shader cleanup 2023-04-25 13:18:19 +01:00
Jarrod Doyle 2117fbb938
Remove unused shader code 2023-04-25 12:58:25 +01:00
Jarrod Doyle 1823d8b52c
Add initial multi-brickmap support 2023-04-25 12:23:55 +01:00
Jarrod Doyle 1d126eba10
Shader now considers the brickmap base shading table offset 2023-04-24 20:20:38 +01:00
Jarrod Doyle 225c76b1a8
Add a basic brickmap shading table 2023-04-24 19:34:19 +01:00
Jarrod Doyle 6be2dd8054
Begin using basic brickmap. Doesn't include shading table 2023-04-24 17:17:56 +01:00
Jarrod Doyle 5914efaea8
Remove unused code 2023-04-24 14:01:36 +01:00
Jarrod Doyle 249ab27777
Make Renderer a trait and implement it for VoxelRenderer 2023-04-24 13:52:38 +01:00
Jarrod Doyle a0df8d2bfc
Implement Debug for Texture and TextureBuilder 2023-04-24 13:50:22 +01:00
Jarrod Doyle 057d849e24
Make CameraController public 2023-04-24 13:47:59 +01:00
Jarrod Doyle 55b79f0b39
Fix voxel sphere offset 2023-04-24 09:49:07 +01:00
Jarrod Doyle 230024ac63
Move app and camera to core module 2023-04-24 09:28:33 +01:00
Jarrod Doyle a94932836f
Moved renderer to render module 2023-04-24 09:24:22 +01:00
Jarrod Doyle 40cdd5766d
Merge branch 'renderer-refactor' 2023-04-23 10:26:45 +01:00
Jarrod Doyle bbc43b53fd
Remove unused imports 2023-04-23 09:56:48 +01:00
Jarrod Doyle 4f8602c48e
Move camera out of renderer 2023-04-21 12:53:42 +01:00
Jarrod Doyle c6932e6646
Use bind group and bind group layout builders 2023-04-21 12:29:46 +01:00
Jarrod Doyle 20aeaa304d
Add bind group and bind group layout builders 2023-04-21 12:29:45 +01:00
Jarrod Doyle b73d9b8f2b
Clamp camera pitch between -85 and 85 degrees 2023-04-21 12:29:45 +01:00
Jarrod Doyle 4f4f3bced1
Clamp camera pitch between -85 and 85 degrees 2023-04-21 10:14:05 +01:00
Jarrod Doyle fddb07d51e
Move texture and context structures to new Render module 2023-04-18 21:57:28 +01:00
Jarrod Doyle 9554f3ba7f
Integrate camera system 2023-04-18 17:06:59 +01:00
Jarrod Doyle 1d26c78b3e
Add simple camera system 2023-04-18 17:06:33 +01:00
Jarrod Doyle 64b0c9d308
Added frame delta time calculation 2023-04-18 17:04:55 +01:00
Jarrod Doyle 528f866311
Add vscode debug launch configurations 2023-04-18 11:04:40 +01:00
Jarrod Doyle 519111d744
Delete old shadertoy based branchless dda shader 2023-04-18 10:56:46 +01:00
Jarrod Doyle 892747d6c4
Begin using the voxel volume shader 2023-04-18 10:56:17 +01:00
Jarrod Doyle c44f32bf8d
Add a voxel volume shader 2023-04-18 10:55:48 +01:00
Jarrod Doyle 900f9f0cea
Add glam to project 2023-04-18 10:54:22 +01:00
Jarrod Doyle 7d29cdf86a
Texture views take dimension from texture dimension 2023-04-18 10:42:11 +01:00
Jarrod Doyle e13aab1808
Use the voxel raycast shader 2023-04-08 21:54:20 +01:00
Jarrod Doyle 33f3aae349
Add a simple voxel raycast compute shader 2023-04-08 21:54:20 +01:00
Jarrod Doyle 2887a0a0af
Use compute shader to change texture 2023-04-08 21:54:20 +01:00
Jarrod Doyle 5ad6b4dc1c
Add a simple texture color change compute shader 2023-04-08 21:54:20 +01:00
Jarrod Doyle 94ade95743
Add shader stage visibility and texture usage to TextureBuilder 2023-04-08 21:54:20 +01:00
Jarrod Doyle 9cf17a8066
Update shader and renderer to use a dummy render texture 2023-04-08 21:54:20 +01:00
Jarrod Doyle 34da4bf0fc
Add texture bind group generation 2023-04-08 21:54:19 +01:00
Jarrod Doyle b391d04a91
Add WGPU Texture wrapper 2023-04-08 21:54:19 +01:00
Jarrod Doyle a9e0547f5a
Rename AppWindow to App 2023-04-08 21:54:19 +01:00
Jarrod Doyle 54005f7c0a
Use lld for faster linking during build 2023-04-08 21:54:19 +01:00
Jarrod Doyle 3e001a930f
Use new RenderCtx and Renderer structs 2023-04-08 21:54:19 +01:00
Jarrod Doyle 6a9335089b
Create RenderContext and Renderer structs 2023-04-08 21:54:19 +01:00
Jarrod Doyle 1b0e1f4bce
Add basic vertex and fragment shader 2023-04-08 21:54:19 +01:00
Jarrod Doyle fa9b8dd855
Basic window creation 2023-04-08 21:54:18 +01:00