Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
bokeh [2020/01/10 09:26] adminbokeh [2020/06/02 14:53] – [Example] admin
Line 18: Line 18:
  
 __Source:__ https://en.wikipedia.org/wiki/Bokeh __Source:__ https://en.wikipedia.org/wiki/Bokeh
 +
 +===== Limitations =====
 +
 +Due to FMX limitations bokeh rendering have some harsh limitations.
 +In FMX the cameras near and far plane is hardcoded to 1.0 - 1000.0.
 +Therefore it's not possible to build a perfect implementation at the moment,
 +because camera's near/far plane need to be equal to bokeh shaders near/far plane.
 +
 +===== Remarks =====
 +
 +The component instanciates two render passes automatically: TGorillaRenderPassCustomDepth and TGorillaRenderPassBokeh. Keep this in mind, in case you'll need the custom depth pass for another render pass. Otherwise you will produce unnecessary rendering overhead, by duplicated render passes.
 +===== Example =====
 +
 +{{youtube>TTXTepj68U8?medium}}
  
 <file pascal> <file pascal>
Line 28: Line 42:
 end; end;
 </file> </file>
 +
 +Next step: [[deftypes|Internal Model Definition]]