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:
(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:
(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.)
Suggestion noted.
Yes a cool feature, this needs to be documented for people making their own game content!
Yes a cool feature, this needs to be documented for people making their own game content!
I was actually trying to suggest something like this as the default shading. Contrast is good :)
This effect looks like the one that is used in Super Smash Bros. 3DS. Maybe try out more variants, because it looks great.
Just a quick comment:
I don't like the effect too much. For me it is too noticable that this was not intended in the first place, because suddenly the models and textures do not match the shading. It really looks like someone accidentally ramped up the light :I
I don't like the effect too much. For me it is too noticable that this was not intended in the first place, because suddenly the models and textures do not match the shading. It really looks like someone accidentally ramped up the light :I
Should we limit the creative process by what was made this or that way or explore possible new features? ;) We could consider changing the textures accordingly!
This might be a matter of being used to it? I had been using a flat "double the lights on objects" shader for some time before, because I felt like objects were just way too dark. This struck me as a nice compromise. Doesn't seem like people like it too much though, so well.
Just a quick test with much simpler textures:
I can see it getting somewhere!
I hereby license the file chemtex.png under the CC-BY license
I hereby license the file lorry.jpg under the CC-BY license
I can see it getting somewhere!
I hereby license the file chemtex.png under the CC-BY license
I hereby license the file lorry.jpg under the CC-BY license
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill