Commit Graph

6003 Commits

Author SHA1 Message Date
Бранимир Караџић e28e458173 Cleanup. 2019-01-03 14:39:41 -08:00
Бранимир Караџић fb8a82a5fd Cleanup. 2019-01-03 14:30:59 -08:00
Бранимир Караџић 8a9ce83d47 Updated ImGui. 2019-01-03 09:21:50 -08:00
Бранимир Караџић 745b7884f2 Updated ImGui. 2019-01-02 09:07:00 -08:00
Бранимир Караџић 42dd2cd540 Updated glslang. 2018-12-31 08:47:04 -08:00
Бранимир Караџић 089a08727f
Merge pull request #1600 from elvencache/master
Add HDR backbuffer support to texturev for viewing HDR textures
2018-12-30 08:41:38 -08:00
elvencache 96611dd944 Add HDR backbuffer support to texturev for viewing HDR textures
Texturev already supports exposure/stops as a way to view details in HDR textures. But results still clip to 1.0 due to 8 bits per channel back buffer. So not viable to view in native HDR.

Add UI menu to select scRGB (f16 HDR for windows) and HDR10 (pq/st2084 and rec2020 color primaries) and add shader code to properly display image. The intent is for SDR range content to look identical across all three modes. With additional details available in HDR modes when viewed on HDR monitor.

Running into trouble compiling fs_texture_array at the moment. So skipping the changes required in that shader.

*sdf.bin.h files changed because of changes in common.sh. Could roll the hdr code into a separate hdr.sh which would leave them be if that would be better?
2018-12-29 23:10:28 -08:00
Бранимир Караџић 149b0e867b
Merge pull request #1599 from junjie020/master
fix example 06 of bump mapping which lighting calculation is incorrect
2018-12-29 08:21:31 -08:00
junjie020 75d1ffedad fix shader mk 2018-12-29 17:58:53 +08:00
junjie020 9a39e66e2b add compile shader 2018-12-29 17:58:43 +08:00
junjie020 c4aa82e2fa fix bump example tangent lighting wrong 2018-12-29 17:29:49 +08:00
Бранимир Караџић 0a1869d4f2 OSX: Disable deprecated warnings. 2018-12-28 22:24:36 -08:00
Бранимир Караџић 3a961e6ab7
Merge pull request #1594 from blaztinn/mtl-fixes
A few metal renderer fixes and cleanups
2018-12-28 08:21:14 -08:00
Blaž Tomažič dd4edb23ed Use existing metal layer if present on NSWindow
If we create and assign a new metal layer to NSWindow, when another one
was already assigned, the window content stays black.
2018-12-28 10:57:47 +01:00
Blaž Tomažič 7669f8442c Release all swapchain resources on destruction 2018-12-28 10:57:44 +01:00
Blaž Tomažič 2babc79d5c Use swapchain's m_num only when attachment array has valid content 2018-12-28 10:57:41 +01:00
Blaž Tomažič a562f3f5a9 Set a number of valid attachments 2018-12-28 10:57:39 +01:00
Blaž Tomažič e4f4c996ce Remove unused fields 2018-12-28 10:57:36 +01:00
Бранимир Караџић 89032aae39 Cleanup. 2018-12-27 20:56:53 -08:00
Бранимир Караџић 4a49f14b5d
Merge pull request #1590 from mchiasson/update_nanovg
upgraded nanovg to the latest.
2018-12-27 20:42:05 -08:00
Бранимир Караџић 82e82d27b5
Merge pull request #1592 from attilaz/backbuffer-fix-metal
fixed metal backbuffer issues
2018-12-27 20:35:27 -08:00
Mathieu-Andre Chiasson 5be52bb925 upgraded nanovg to the latest. 2018-12-27 21:52:01 -05:00
Attila Kocsis b3252719c0 fixed metal backbuffer issues 2018-12-27 16:25:54 +01:00
Бранимир Караџић bc82af19c1 Metal: Fixed main swapchain leak. 2018-12-26 14:11:57 -08:00
Бранимир Караџић 593731cc73 Cleanup. 2018-12-26 13:36:27 -08:00
Бранимир Караџић bda120446e Cleanup. 2018-12-26 13:10:03 -08:00
Бранимир Караџић 5ba516d098 Cleanup. 2018-12-26 10:20:02 -08:00
Бранимир Караџић aeb8a00327
Merge pull request #1591 from junjie020/master
fix metal shader lack of texutre uniform variable
2018-12-25 23:41:13 -08:00
Бранимир Караџић d2daf54379 Metal: Fixed MSAA detection. 2018-12-25 23:20:14 -08:00
junjie020 9296a44f5e fix metal shader lack of texutre uniform variable 2018-12-26 14:19:07 +08:00
Бранимир Караџић f63a15160b Cleanup. 2018-12-24 22:54:08 -08:00
Бранимир Караџић 03ac0190d0 Updated ImGui. 2018-12-23 19:49:54 -08:00
Бранимир Караџић 6be0243ac8 Fixed build. 2018-12-22 20:39:26 -08:00
Бранимир Караџић 2950f85d7f
Merge pull request #1588 from mchiasson/patch-1
VertexBufferGL unbinds correct target if destroyed
2018-12-22 18:41:31 -08:00
Бранимир Караџић 9a3d580f01 Updated glslang. 2018-12-22 18:40:47 -08:00
Matt Chiasson 2776279b3e
VertexBufferGL unbinds correct target if destroyed
it was only unbinding `GL_DRAW_BUFFER` when the vbo target could be either `GL_DRAW_BUFFER` or `GL_DRAW_INDIRECT_BUFFER`.

see 6bff345637/src/renderer_gl.h (L1186) for detail
2018-12-22 14:45:25 -05:00
Бранимир Караџић e8658ce369 Merge branch 'master' of github.com:bkaradzic/bgfx 2018-12-21 23:25:35 -08:00
Бранимир Караџић 22fb0f7ad7 Removing VR leftovers. 2018-12-21 23:25:30 -08:00
Branimir Karadžić 147a379067 Cleanup. 2018-12-21 21:05:26 -08:00
Branimir Karadžić 5a996c95d9 Cleanup. 2018-12-21 20:39:31 -08:00
Branimir Karadžić 63e298795d Cleanup. 2018-12-21 18:02:39 -08:00
Бранимир Караџић e01edc6af1 Updated ImGui. 2018-12-21 09:08:06 -08:00
Branimir Karadžić 7b98546fd7 Removing old vector math. 2018-12-20 21:49:10 -08:00
Branimir Karadžić 11729403f4 Metal: Invalidate PSO when program is destroyed. Issue #1585. 2018-12-20 20:18:30 -08:00
Бранимир Караџић 3b62091bba Cleanup. 2018-12-20 18:35:43 -08:00
Бранимир Караџић 80e8ad2303 Updated ImGui. 2018-12-20 09:03:59 -08:00
Бранимир Караџић f9606320cf
Merge pull request #1584 from cloudwu/fixnumvert
We should use numVertices here rather than draw.m_numVertices
2018-12-19 20:15:59 -08:00
Branimir Karadžić 85c3bedfee shaderc: Allow space as delimiter for in/out params. 2018-12-19 20:13:33 -08:00
Cloud Wu 4226bb242d We should use numVertices here rather than draw.m_numVertices 2018-12-20 10:28:12 +08:00
Branimir Karadžić a4776e297d Cleanup. 2018-12-19 17:16:48 -08:00