Commit Graph

1225 Commits

Author SHA1 Message Date
Branimir Karadžić
8b4ac9d440 Changed getSupportedRenderers function. 2016-10-07 16:58:26 -07:00
Branimir Karadžić
15349a45a9 Renamed shader gles dir to essl. 2016-10-01 00:08:37 -07:00
Branimir Karadžić
69c5902453 Rebuilt shaders. 2016-09-30 20:03:41 -07:00
Branimir Karadžić
f1a8c5f195 Cleanup. 2016-09-27 22:07:53 -07:00
Branimir Karadžić
84e4a66c96 Cleanup. 2016-09-27 18:11:41 -07:00
Branimir Karadžić
ab021e0724 Cleanup. Issue #929. 2016-09-25 11:25:11 -07:00
Branimir Karadžić
483d31473f Fixed picking example. Issue #929. 2016-09-24 15:31:38 -07:00
Branimir Karadžić
50d867bbc2 Added limits info to caps. 2016-09-24 00:29:59 -07:00
Branimir Karadžić
44de6fb789 Cleanup. 2016-09-08 22:03:42 -07:00
Branimir Karadžić
374fe6f845 Updated NanoVG. 2016-09-08 21:19:47 -07:00
Branimir Karadžić
813d145ac9 GLFW: Fixed exit. 2016-09-06 23:07:11 -07:00
Branimir Karadžić
b49fb810ff Fixed issue #902. 2016-09-06 19:13:13 -07:00
Camilla Berglund
8b4f495225 GLFW: Lowered CPU use. 2016-09-05 21:41:03 +02:00
Camilla Berglund
3429fff1ba GLFW: Implemented full GLFW backend. 2016-09-05 21:41:02 +02:00
Branimir Karadžić
f9486780c2 Updated NaCl toolchain to v49. 2016-09-02 21:25:01 -07:00
Branimir Karadžić
0ba8b1895b Cleanup. 2016-09-02 19:49:01 -07:00
Branimir Karadžić
687e4103fe Added gizmo hook. 2016-08-29 22:31:30 -07:00
Branimir Karadžić
79ef46e4cf Fixed issue #890. 2016-08-26 09:01:49 -07:00
Branimir Karadžić
df88bc2106 Cleanup. 2016-08-22 19:42:38 -07:00
Branimir Karadžić
8809a190ef Fixed calcTextureSize. 2016-08-22 14:17:08 -07:00
Branimir Karadžić
7f4b9165f1 Cleanup. 2016-08-21 14:05:36 -07:00
Branimir Karadžić
7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Branimir Karadžić
c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -07:00
Branimir Karadžić
3ac8943e05 Removed PlatformData helpers. 2016-08-17 20:41:09 -07:00
Branimir Karadžić
939829f88c Moved SDL and GLFW window platform hooks to entry. 2016-08-16 22:22:39 -07:00
Branimir Karadžić
a488207c81 Cleanup. 2016-08-10 21:51:29 -07:00
Branimir Karadžić
2c861766e8 Switch iffy translation code to lookup table translation. 2016-08-10 20:36:21 -07:00
Olli Wang
1804ba77c1 Updates nanovg to support global composite operation. (#877)
This commit updates bgfx's NanoVG codebase to adapt the latest NanoVG commit since I've implemented blending support for the original NanoVG and there is no need of `nvgState()` anymore.
2016-08-10 20:15:31 -07:00
Branimir Karadžić
9f7386e53a Rebuilt NanoVG embedded shader. 2016-08-10 10:59:07 -07:00
Branimir Karadžić
d7026e8f0c Reverted embedded shader. 2016-08-09 22:54:18 -07:00
Olli Wang
b9810aca70 Updates nanovg backend to adopt premultiplied alpha. (#873)
This commit updates nanovg's bgfx backend to adopt premultiplied alpha as the default blending mode just like the original nanovg. Both the fragment shader and the `glnvg__convertPaint()` function are updated to match the original nanovg counterpart.

However, the binary file of the fragment shader is built on Mac so DirectX support is missing.
2016-08-09 22:44:04 -07:00
Branimir Karadžić
dd0d563417 Fixed build. 2016-08-08 16:33:17 -07:00
Branimir Karadžić
b4cb6a352e Fixed clang4 error. 2016-08-08 13:17:07 -07:00
Branimir Karadžić
c25a273e29 Cleanup. 2016-08-08 09:23:42 -07:00
Olli Wang
f11d954bc1 Implements nanovg's framebuffer helper functions. (#869)
This commit ports nanovg's helper functions for rendering stuff in framebuffer defined in `nanovg_gl_utils.h`. Also, a new `nvgState()` function is created for bgfx backend so it is possible to blend between framebuffers, which feature is long requested but not yet supported in original nanovg. The `nvgState()` function can be called between `nvgBeginFrame()` and `nvgEndFrame()`.
2016-08-08 08:33:37 -07:00
Olli Wang
fa73aa4b09 Adds iOS device's Retina screen support for nanovg. (#865)
This commit fixes the bug that the bgfx does not respect the `devicePixelRatio` parameter passed to nanovg's `nvgBeginFrame()` function. The problem is caused by the `bgfx::setViewRect()` call defined in the `nvgRenderViewport()` function, as it should take size in consideration of the `devicePixelRatio` value.

However, this commit does not fix nanovg's example app because currently there is no easy way to pass the scale value to the `ExampleNanoVG::update()` method as it calls `nvgBeginFrame()`.
2016-08-05 09:50:02 -07:00
Olli Wang
c960c46564 Moves additional bgfx nanovg functions to a separate header file.
This commit moves the additional nanovg functions for bgfx to a separate header file, so it is possible to compile the original nanovg  source files with bgfx in a custom build environment.
2016-08-05 17:26:06 +08:00
Branimir Karadžić
4fbf1c0ca2 Cleanup. 2016-07-25 19:09:52 -07:00
Branimir Karadžić
4744a44880 Cleanup. 2016-07-24 19:49:27 -07:00
Branimir Karadžić
972a8c029e Cleanup. 2016-07-24 17:17:12 -07:00
Branimir Karadžić
11e66f2383 Cleanup. 2016-07-24 16:45:34 -07:00
Branimir Karadžić
6c767eed9c Cleanup. 2016-07-24 16:18:26 -07:00
Branimir Karadžić
6cd0d95adb Renamed example to shorter name. 2016-07-24 16:08:59 -07:00
Branimir Karadžić
09e791be03 Rebuilt shaders. 2016-07-24 16:07:09 -07:00
Branimir Karadžić
5b3c9609cb Cleanup. 2016-07-24 15:50:42 -07:00
jcherlin
f56cf4c88e Added RSM sample. (#854)
* Added RSM sample.
2016-07-24 15:39:50 -07:00
Branimir Karadžić
ce878f9180 Renaming float4_t to simd128_t. 2016-07-18 19:03:25 -07:00
Branimir Karadžić
894e2d77b6 Rebuilt shaders. 2016-07-16 08:25:02 -07:00
cancel
e34fdb4893 Fix issues with example 18-ibl's shaders.
Change vs_ibl_skybox.sc to correctly use radians instead of degrees when
specifying field-of-view. Additionally, use u_viewRect to find the correct
aspect ratio of the viewport, instead of hard-coding to 4/3.

Change fs_ibl_skybox.sc, fixing a number of small issues and mistakes. These
mistakes would lead to incorrect lighting results, especially with metallic
materials at glancing angles.

This commit does not include the rebuilt .bin output of shaderc for these
shaders.
2016-07-16 17:05:15 +09:00
Branimir Karadžić
c97f6c41c4 Cleanup. 2016-07-10 23:41:56 -07:00