PDA

View Full Version : black & white



zukko
09-13-2004, 10:43 AM
how can i make a black and white effect ??

09-13-2004, 11:23 AM
hey zukko, could you be a bit more specific?

M/\dm/\n
09-15-2004, 01:48 AM
Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3

Relic
09-15-2004, 02:26 AM
Originally posted by M/\dm/\n:
Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3Huh? 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)

09-15-2004, 05:47 PM
i am trying to achieve some grayscale effect, without shaders is there a way to do it??

zukko
09-19-2004, 11:48 AM
and how do i set that??
im using nehe's basecode.