bgfx/examples/45-bokeh
elvencache 7f758a06a7
Improve Bokeh example (#2377)
* display bokeh sample pattern, add bokeh shape, improve look

draw sample pattern to texture and display in ui to see number of samples and their arrangment

add bokeh shape controls

remove adhoc 'sqrt' pattern since display makes existing pattern easier to understand and it looks nicer.

switch to floating point color texture and leave lighting results in linear space until after dof is performed. provides better results and bright spots can make more noticeable bokeh shapes.

change default values to use take more samples at reduced resolution so initial experience when loading the sample is better looking image

* update screenshot, minor change to ui

fix height of ui element so scrollbar not required by default layout
update screenshot

* fix typo in texturev

atleast, i'm pretty sure that's a typo don't see a reason to set width twice
2021-02-04 20:28:54 -08:00
..
bokeh_dof.sh Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
bokeh.cpp Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_copy_linear_to_gamma.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_copy.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
fs_bokeh_dof_combine.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_dof_debug.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_dof_downsample.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
fs_bokeh_dof_second_pass.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_dof_single_pass.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_forward_grid.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_forward.sc Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
fs_bokeh_linear_depth.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
makefile 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
parameters.sh Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
screenshot.png Improve Bokeh example (#2377) 2021-02-04 20:28:54 -08:00
varying.def.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
vs_bokeh_forward.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00
vs_bokeh_screenquad.sc 45-bokeh: Built shaders and added example. 2021-01-31 10:07:49 -08:00