PDA

View Full Version : applying fill effects to the background



gurkama
02-26-2005, 12:30 AM
Hi all

I wanted to know whether I can apply fill effects to the background, without using textures.
I'm looking for replacing glClearColor, and will output in a shaded color in the background, again - without using textures.

Thanks

MMMovania
02-26-2005, 12:54 AM
Originally posted by gurkama:
Hi all

I wanted to know whether I can apply fill effects to the background, without using textures.
I'm looking for replacing glClearColor, and will output in a shaded color in the background, again - without using textures.

ThanksHello there
Are you trying to create Gradient fills?

gurkama
02-26-2005, 06:24 AM
Yes

Aeluned
02-28-2005, 09:29 AM
Draw a quad with the dimensions of the viewport in orthographic mode before your scene, set the vertex colors of the quad accordingly to accomodate your desired gradient.

Now, draw the rest of your scene on top.