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
Finally I came around to adding ambient light. Can I have a second opinion on the implementation?

The first/left implementation normalizes the ambient light before writing it to the color texture (which creates a smooth shade from the light color to the ambient color).
The second/right implementation halves the ambient light color values before writing it to the color texture (which creates harder edges, but weak=dark ambient light is not as prominent on the screen).

Normalization:
+ coherent with the rest of the implementation
- weak ambient light such as RGB(50,0,0) is noticeable at the edge of the Clonk's light even underground

Halved values
+ weak ambient light is not noticeable underground
- hard edges
- colors seem to be more saturated when the light is weak, because of the harder edges

The attached picture is just a sample, the .xcf file has more screenshots for comparison.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill