Topic Shading
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.
In Response to PeterW
Just to get people thinking: Having all shading in (well, duh) shaders means that we can change the look of the game relatively easily. For example, if we add the following code to
we get a simple cell-shading effect:
[img]Screenshot019.png[/img]
(and yes, it increases the brightness of objects quite considerably. Consider this my way of sneaking an extra suggestion in there. Seems to make the sky go white though.)
ObjectLightShader.glsl
:slice(light+5)
{
#ifdef HAVE_LIGHT
if (normal.z > 0.6) {
light = light * 2;
}
#endif
}
we get a simple cell-shading effect:
[img]Screenshot019.png[/img]
(and yes, it increases the brightness of objects quite considerably. Consider this my way of sneaking an extra suggestion in there. Seems to make the sky go white though.)
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill