Jump to content

"Color" blend mode


Masterxilo
 Share

Recommended Posts

Blending is a fixed-function operation, and cannot be written with a shader. The blend modes are listed in the material editor. I don't know what a color blend would be, or if it is supported on the hardware.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Multiply is the most common blend I use. It may not seem intuitive, but multiplying two colors results in a darker color...because the colors are considered to be in the range from 0 to 1. Mod2x blending is multiplying, and then multiplying the result by 2. This allows one color to darken or brighten another. Additive blending is self-explanatory. I don't really use anything else.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 2 weeks later...

I found that a while back, we have been utilizing that code, in a GLSL shader, for loads of things.

 

The updated Saturation, Contrast, Brightness shader I posted a while back utilized that guy's code.

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...