diff --git a/README.md b/README.md index d4f1785f..50461a2f 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,13 @@ Shadow volumes. ![example-16-shadowmaps](https://github.com/bkaradzic/bgfx/raw/master/examples/16-shadowmaps/screenshot.png) +### 17-drawstress +Draw stress, maximizing number of draw calls. + +### 18-ibl +Image based lighting. + + Dependencies ------------ @@ -414,7 +421,7 @@ Jeremie Roy ([@jeremieroy](https://github.com/jeremieroy)) - Font system and examples. Milos Tosic ([@milostosic](https://github.com/milostosic)) - 12-lod example. Dario Manesku ([@dariomanesku](https://github.com/dariomanesku)) - 13-stencil, - 14-shadowvolumes, 15-shadowmaps-simple, 16-shadowmaps + 14-shadowvolumes, 15-shadowmaps-simple, 16-shadowmaps, 18-ibl When contributing to the bgfx project you must agree to the BSD 2-clause licensing terms. diff --git a/examples/18-ibl/fs_ibl_mesh.sc b/examples/18-ibl/fs_ibl_mesh.sc index 65c136bb..e312b764 100644 --- a/examples/18-ibl/fs_ibl_mesh.sc +++ b/examples/18-ibl/fs_ibl_mesh.sc @@ -62,7 +62,7 @@ void main() vec3 cd = kd * (1.0 - cs); vec3 diff = cd; - float pwr = exp2(u_glossiness * 11.0 + 1.0); + float pwr = exp2(u_glossiness * 11.0 + 1.0); vec3 spec = cs * pow(ndoth, pwr) * ( (pwr + 8.0)/8.0) * fresnel(cs, vdoth); vec3 ambspec = fresnel(cs, ndotv) * cenv; diff --git a/examples/makefile b/examples/makefile index 49c0849b..1b596971 100644 --- a/examples/makefile +++ b/examples/makefile @@ -21,5 +21,6 @@ rebuild: @make -s --no-print-directory rebuild -C 15-shadowmaps-simple @make -s --no-print-directory rebuild -C 16-shadowmaps @make -s --no-print-directory rebuild -C 17-drawstress + @make -s --no-print-directory rebuild -C 18-ibl @make -s --no-print-directory rebuild -C common/font @make -s --no-print-directory rebuild -C common/imgui diff --git a/examples/runtime/shaders/gles/fs_ibl_mesh.bin b/examples/runtime/shaders/gles/fs_ibl_mesh.bin index 1a740319..3495a322 100644 Binary files a/examples/runtime/shaders/gles/fs_ibl_mesh.bin and b/examples/runtime/shaders/gles/fs_ibl_mesh.bin differ diff --git a/examples/runtime/shaders/gles/fs_ibl_skybox.bin b/examples/runtime/shaders/gles/fs_ibl_skybox.bin index 188d9576..708d3374 100644 Binary files a/examples/runtime/shaders/gles/fs_ibl_skybox.bin and b/examples/runtime/shaders/gles/fs_ibl_skybox.bin differ diff --git a/examples/runtime/shaders/gles/vs_ibl_mesh.bin b/examples/runtime/shaders/gles/vs_ibl_mesh.bin index 16a12e49..fa8ae676 100644 Binary files a/examples/runtime/shaders/gles/vs_ibl_mesh.bin and b/examples/runtime/shaders/gles/vs_ibl_mesh.bin differ diff --git a/examples/runtime/shaders/gles/vs_ibl_skybox.bin b/examples/runtime/shaders/gles/vs_ibl_skybox.bin index 58a920a4..f6ed295a 100644 Binary files a/examples/runtime/shaders/gles/vs_ibl_skybox.bin and b/examples/runtime/shaders/gles/vs_ibl_skybox.bin differ