21 years, 6 months ago
Highlights
Use a pixel shader to calculate the luminance at each pixel and use it as a color.Y' = 0.2126 R' + 0.7152 G' + 0.0722 B'http://en.wikipedia.org/wiki/Luminance
21 years, 6 months ago
21 years, 6 months ago
Quote:Original post by c-gibson-sIt depends on what bitflags you specified in SDL_SetVideoMode.If you set SDL_SWSURFACE then it creates the surface in system memory. If you…
21 years, 6 months ago
22 years, 2 months ago
22 years, 2 months ago
Latest Activity
See all in DiscussionsUse a pixel shader to calculate the luminance at each pixel and use it as a color.Y' = 0.2126 R' …
21 years, 6 months ago
Quote:Original post by c-gibson-sIt depends on what bitflags you specified in SDL_SetVideoMode.If you set SDL_SWSURFACE then it creates the surface …
21 years, 6 months ago
Carmack uses OpenGL BTW...
22 years, 2 months ago