luminance maps

ok so far i have a first pass in which i render depth only, then i render one pass for each light source and blend these together. now i’d like to add support for luminance maps (is this the correct term?) for samples that are to be rendered in full brightness (for computer monitors etc).

what’s the most eficient way to do this? will i need an extra pass for this?


just use emission in the shader eg quasi code

float amount = diffuse + tex2d( luminance ).x;
amount = clamp( amount,0,1); = tex2d( texture_sample ) * amount;

// diffuse is just your normal shading
// luminance ala emission ala ambient is how much extra lighting u want added

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.