Janos Oudrin Posted December 15, 2003 Share Posted December 15, 2003 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? Link to comment Share on other sites More sharing options...
Janos Oudrin Posted December 15, 2003 Author Share Posted December 15, 2003 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. Link to comment Share on other sites More sharing options...
Wudan Posted December 16, 2003 Share Posted December 16, 2003 Good job. I'm working on a similar problem at the moment - got any pics of your black saber? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.