riksweeney
01-04-2007, 03:53 AM
Hi,
I'm loading up a BSP file (created in GTKRadiant) and am rendering the texture to the first texture unit and applying the lighting to the second texture unit. This all works OK.
In my game though, I want to change all the lighting to red which is OK as I can just copy each lightmap and convert it by altering the HSV and RGB values. I can then bind this to the second texture unit instead.
What I would like to do is be able to pulse between the original lightmap and the red one. I was considering using the 3rd texture unit and just fade between them, but this would cause problems to people with old cards. Making loads of textures to go on the 2nd texture unit probably isn't a good approach either.
Does anyone have any suggestions as to how I can blend between the two colours?
Thanks
Richard
I'm loading up a BSP file (created in GTKRadiant) and am rendering the texture to the first texture unit and applying the lighting to the second texture unit. This all works OK.
In my game though, I want to change all the lighting to red which is OK as I can just copy each lightmap and convert it by altering the HSV and RGB values. I can then bind this to the second texture unit instead.
What I would like to do is be able to pulse between the original lightmap and the red one. I was considering using the 3rd texture unit and just fade between them, but this would cause problems to people with old cards. Making loads of textures to go on the 2nd texture unit probably isn't a good approach either.
Does anyone have any suggestions as to how I can blend between the two colours?
Thanks
Richard