Not logged inOpenClonk Forum
Up Topic Colored lights

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Marky
Ok, "material lights" sounds good then.

In the current implementation the color is always of the same brightness, because it is normalized in the shader. A dark color is just blended over more easily by light colors, because dark light is weak. The actual darkness of the light is achieved by also reducing it's brightness, so that it is less prominent in the light intensity texture. For brightness I use V from the HSV color scheme, so that overall brightness = V * brightness.

Example: RGB(128, 0, 0) would have the same effect as RGB(255, 0, 0). But RGB has only a value of 0.5, which makes the light half as bright as the other one.

Do you know where the from other materials is applied?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill