how can i make a black and white effect ??
hey zukko, could you be a bit more specific?
Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3
Originally posted by M/\dm/
:
Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3
Huh? Where does that come from?
The usual NTSC conversion from color to greyscale is:
out.rgb = (in.r * 0.3 + in.g * 0.59 + in.b * 0.11)
i am trying to achieve some grayscale effect, without shaders is there a way to do it??
and how do i set that??
im using nehe’s basecode.