![Image](http://i.imgur.com/82Y8RQI.png)
haven't tried to tweak color.
![Cool 8-)](./images/smilies/dirol.gif)
Bokeh isn't made by the camera, it's made by the lens. So, no it does not. Canon lenses generally have 6 aperture blades so technically that bokeh shape can never be produced by them. Also bokeh created by a shader will never look like what comes out of a real lens, not now, not in 5 years. Maybe later we will have the computational power to render light which is indistinguishable from the real thing.abc75179778300 wrote:Looks really like the bokeh effect taken from Canon's D series.
Code: Select all
if (use_technicolor==true)
{
float3 techcol = color.rgb;
float techamount = lerp( lerp( techamountN, techamountD, ENightDayFactor ), techamountI, EInteriorFactor );
float lum = dot( color.xyz, float3( 0.333, 0.333, 0.333 ));
techcol.r *= (1 - abs(color.g - lum))* (1 - abs(color.b - lum));
techcol.g *= (1 - abs(color.r - lum))* (1 - abs(color.b - lum));
techcol.b *= (1 - abs(color.r - lum))* (1 - abs(color.g - lum));
color.xyz = lerp( color.xyz, techcol, techamount );
}