Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Math applied to pixels with overlay

Status
Not open for further replies.

Gumgo

Programmer
May 11, 2006
1
0
0
US
Hello,
I'm adding lightmaps to a 3D engine and I'm trying to figure out how to blend them correctly with textures. I want to be able to have a full range of colors - black to white. The default blending is "multiply" but that only has a range of black to the original color. So, I want to use something similar to "Overlay" (or "Soft Light") in the Photoshop blend modes.

The problem is, I don't know how the pixel colors are combined in those blend modes. If anyone knows, could you inform me on how each pixel is blended? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top