Light and shadowmap

I am just wondering how to go about creating an effect as show in this mockup.

Normally a lightmap has the same effect as setting a layer to multiply in Photoshop. One effect I created in ShockWave3D was to have one layer set to multiply to create the shadows, and another layer on top of that set to additive glow. This way it was possible to create a nice warm glow in the lighting, which isnt possible with the traditional way of doing lightmaps.

So, is it possible to make (or is it already available), a shader that creates this Overlay effect that is available in Photoshop? If it is, it would halve the amount of lightmapping needed to create such an effect.

Basically have “multiply” for the colourrange that is lower than 127 127 127, and an “additive glow” effect to any pixelvalue that goes from 128 and up.

Have you looked at any of the “Lightmap” shaders in the Standard Assets? You might be able to use one of those, or modify it for your needs.

63007--2307--$picture_1_183.jpg

I looked at those earlier today and didnt find what I was after, so I might poke around in them and see how to implement this algorithm:

if (Base > ½) R = 1 - (1-2×(Base-½)) × (1-Blend)
if (Base <= ½) R = (2×Base) × Blend 
[quote][/quote]

http://dunnbypaul.net/blends/

http://www.simplefilter.de/en/grundlagen/mixmods.html