Water Surface Color

Water Surface Color

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Water Surface Color

Post by zwzsg »

Would it be possible to make ocean.jpg grey, and apply to it WaterBaseColor ? Or alternatively to let each map use its own texture for water surface?

That way map makers can make water with different colors, instead of always having a blue water surface.
User avatar
[K.B.] Napalm Cobra
Posts: 1222
Joined: 16 Aug 2004, 06:15

Post by [K.B.] Napalm Cobra »

Then whats this for?

Code: Select all

	[WATER]
	{
		WaterBaseColor=0.4 0.5 0.8;  //color at water surface
		WaterAbsorb=0.004 0.004 0.002;  //how fast different colors are absorbed by the water
		WaterMinColor=0.1 0.1 0.3;  //the min value the water colors will go down to
	}
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

wooo, LAVA!!

w00t!

Now, to get kewl lava jets and effects in Spring

*glances at core dev team* ¬.¬
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Those three values determine the tinting applied to the texture underwater. First one is the map texture tinting at waterlevel, second one is the how map texture tint change with deepness, third one is a thresold beyond which tint don't change. It's only applied to the map base texture, not to unit, no to the water surface. Check my core prime industrial area map, while keeping in mind that the water area were only grey in the texture .bmp.
User avatar
[K.B.] Napalm Cobra
Posts: 1222
Joined: 16 Aug 2004, 06:15

Post by [K.B.] Napalm Cobra »

It'll have to do for now I suppose, although it makes the water in your map look like green jelly.
Post Reply

Return to “Engine”