From e125cb0c2021f5ef20f9dfb232851dae8c31c0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 14 Feb 2014 00:16:23 -0800 Subject: [PATCH] Updated README. --- README.md | 9 ++++++++- examples/18-ibl/fs_ibl_mesh.sc | 2 +- examples/makefile | 1 + examples/runtime/shaders/gles/fs_ibl_mesh.bin | Bin 1812 -> 1789 bytes .../runtime/shaders/gles/fs_ibl_skybox.bin | Bin 519 -> 496 bytes examples/runtime/shaders/gles/vs_ibl_mesh.bin | Bin 589 -> 566 bytes .../runtime/shaders/gles/vs_ibl_skybox.bin | Bin 415 -> 392 bytes 7 files changed, 10 insertions(+), 2 deletions(-) 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 1a7403190116712ce70a0d186c9af6fcbbc74e95..3495a32221be0f1678e58a02e0182e02c3d4e927 100644 GIT binary patch delta 17 YcmbQj_m`K$E!cxGsQR1OM)|L705zBfI{*Lx delta 40 vcmey%JB3f)E!cxGsQQ~&K~ZXQW^rbIoR delta 40 vcmeys+|DBJ7VN=zAlK2fpeQvtvp6$9Paz{SJ)=M&Ehj&*#F}d(#|uUPAvq2_ diff --git a/examples/runtime/shaders/gles/vs_ibl_mesh.bin b/examples/runtime/shaders/gles/vs_ibl_mesh.bin index 16a12e49458f4a987d6d03db9266bd136ae3eedf..fa8ae6760ad151211ed25b3b59500cfb45337e3e 100644 GIT binary patch delta 17 YcmX@hvW