Commit Graph

337 Commits

Author SHA1 Message Date
Georg Hagen
b13c1c54ae Update shader to use new render resource system 2024-08-21 13:33:15 +02:00
Georg Hagen
3940a72084 Render resource handling for textures 2024-08-21 13:13:43 +02:00
Georg Hagen
33c8b74342 Use RenderResource for uniform buffers 2024-08-21 10:17:45 +02:00
Georg Hagen
25a0978a57 Add render resouce 2024-08-20 23:44:17 +02:00
Georg Hagen
5d80414956 Fail build on warning C4715 2024-08-16 12:44:37 +02:00
ohyzha
55ebb9f630 if else shortcut 2024-08-13 12:27:15 +03:00
ohyzha
dba13b754d clean up comments 2024-08-13 11:55:28 +03:00
ohyzha
1f418fa673 support msdf 2024-08-13 10:53:38 +03:00
Oleksii_Hyzha
9f2e748a2d Merge pull request 'Text rendering' (#90) from text_rendering into master
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/90
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
2024-08-09 08:57:35 +02:00
ohyzha
6a85f25b87 fix incorrect geometry buffer size 2024-08-08 21:35:16 +03:00
ohyzha
ae39847d95 improve atlas texture size handling 2024-08-08 17:41:02 +03:00
ohyzha
1659cee9eb render question mark if glyph is not loaded 2024-08-08 12:23:38 +03:00
ohyzha
a390470420 code cleanup 2024-08-07 21:55:58 +03:00
ohyzha
38d97f4c28 split font atlas generator to interface and implementation 2024-08-07 20:05:06 +03:00
ohyzha
50bb6b62fe get rid of vcpkg and build freetype from sources 2024-08-07 16:00:05 +03:00
ohyzha
c3d4ba84e0 fix ios_base on unix 2024-08-06 17:36:05 +03:00
ohyzha
c7c2a96b9c add opportunity to pack atlas and meta data in same file 2024-08-06 17:02:24 +03:00
metehan.tuncbilek
6172f4e215 data-format (#94)
Co-authored-by: Metehan Tuncbilek <mtuncbilek95@gmail.com>
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/94
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
Co-authored-by: metehan.tuncbilek <metehan.tuncbilek@madvoxel.com>
Co-committed-by: metehan.tuncbilek <metehan.tuncbilek@madvoxel.com>
2024-08-06 13:18:09 +02:00
ohyzha
cb409268a8 implement multiline text rendering 2024-08-06 10:33:28 +03:00
ohyzha
afccf5dee0 implement text rendering without msdfgen library 2024-08-06 10:33:28 +03:00
ohyzha
62a0e84634 minor fixes 2024-08-06 10:33:13 +03:00
ohyzha
232ad0a938 rework API for text rendering 2024-08-06 10:33:13 +03:00
ohyzha
dcf6e72f96 minor fixes 2024-08-06 10:33:13 +03:00
ohyzha
837861d6f2 fix mac build 2024-08-06 10:32:55 +03:00
ohyzha
9589b4d39f refactor code and support utf8 strings rendering 2024-08-06 10:32:55 +03:00
ohyzha
875ad80337 give more meaningful names 2024-08-06 10:32:55 +03:00
ohyzha
be549dccf6 code review changes and fixes 2024-08-06 10:32:55 +03:00
ohyzha
e69a553b18 working version of text rendering 2024-08-06 10:32:55 +03:00
ohyzha
9b58ba5f55 working version of glyphs rendering with example 2024-08-06 10:32:54 +03:00
ohyzha
51608425c1 extend api for draw phase 2024-08-06 10:31:31 +03:00
ohyzha
656d6f1371 working msdf atlas gen lib on windows 2024-08-06 10:26:02 +03:00
ohyzha
29311207db working msdfgen version of loading and building for win 2024-08-06 10:25:55 +03:00
Georg Hagen
de06623105 Update texture sampler config handling 2024-08-03 19:16:46 +02:00
Georg Hagen
ad036ad2b6 Add getters to camera 2024-08-02 16:57:47 +02:00
Georg Hagen
5bd46074a9 Add definitions for some common sampler settings 2024-08-01 13:02:36 +02:00
Georg Hagen
95627fe53a Fix shader Close 2024-08-01 11:12:01 +02:00
Georg Hagen
9f9e916110 Default SamplerConfig to Linear sampling 2024-07-31 23:15:05 +02:00
Georg Hagen
28cfcd62b1 Disable depth writes for grid 2024-07-30 22:40:52 +02:00
Georg Hagen
d0e50d2409 Add GetProjectionMatrix 2024-07-30 22:40:08 +02:00
Georg Hagen
b079221322 Allow shader to define the depth compare operator 2024-07-30 22:16:00 +02:00
Georg Hagen
ce1b52c130 Use dynamic viewport sizes 2024-07-30 14:04:20 +02:00
Georg Hagen
2ed7f7689e Add samplerconfig 2024-07-28 17:42:05 +02:00
Georg Hagen
d5952d1f87 Add ArchStrip 2024-07-28 17:41:33 +02:00
Georg Hagen
eb81c777bf Expose ui scaling and orientation 2024-07-27 14:30:59 +02:00
Georg Hagen
6a1a76f4d1 Merge pull request 'Geometry & GeometryFactory memory leaks' (#85) from geometry_mem_leaks into master
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/85
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
2024-07-24 20:44:27 +02:00
ohyzha
c29f90fc28 return geometry by value from factory 2024-07-24 17:36:56 +03:00
ohyzha
abf1b72990 extend geometry API 2024-07-24 17:36:56 +03:00
Georg Hagen
02ff22d193 Fix some issue with deinitializing textures 2024-07-23 22:01:07 +02:00
Georg Hagen
53410bb8db Allow shared memory uniform buffer creation 2024-07-22 21:08:08 +02:00
Georg Hagen
06e6623050 Allow simple drawable to define its draw phase 2024-07-22 14:19:53 +02:00