How to replace shade of color with a another color - GLSL/OGL Hi all, How can i replace the shade of color to another color, on my attached image (S1.png), the image is of the shade of blue, and i want to replace the entire color with a different color in GLSL but icannot just straight set the values as the colors are of different shade of blue. What i am trying to achieve is this, the image represents something like a glow in the game and the color changes based on a certain type. Example is the other image attached (image.png), where the blue color was replaced by red (dont mind the whitish color as i will overlay a white color on top of it). How can i do this in shader part, whats the math or the things i need to research for this? https://ift.tt/eA8V8J
Hi all, How can i replace the shade of color to another color, on my attached image (S1.png), the image is of the shade of blue, and i want to replace the entire color with a different color in GLSL but icannot just straight set the values as the colors are of different shade of blue. What i am trying to achieve is this, the image represents something like a glow in the game and the color changes based on a certain type. Example is the other image attached (image.png), where the blue color was replaced by red (dont mind the whitish color as i will overlay a white color on top of it). How can i do this in shader part, whats the math or the things i need to research for this?
from GameDev.net http://bit.ly/2VLFwB2
from GameDev.net http://bit.ly/2VLFwB2
ليست هناك تعليقات