Jump to content

Home

Black blending?


Janos Oudrin

Recommended Posts

Posted

I'm having a tough time getting my black saber to work...

In JO, I would have a negative grayscale lightsaber and I would use the blendFunc GL_DST_COLOR GL_SRC_COLOR in the shader. This worked, except for the fact that if you played JO in windowed mode, it would look really strange, seemingly displaying the white stuff instead of the black stuff.

 

In JA, I tried the same, but unfortunatly, it does the exact same thing as JO did in windowed mode... But ALL THE TIME!

 

As my black saber looks awful now, I'm just asking the GL blending pro's out there...

 

What is the correct blendFunc to use for displaying black lightsabers?

Posted

Right, to answer my own question then:

 

If you use a negative greyscale image of a lightsaber, and use the "blendFunc filter" in the shader, you can make it display a black lightsaber.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...