TokisanGames / Terrain3D

A high performance, editable terrain system for Godot 4.
MIT License
2.02k stars 115 forks source link

Add Per Channel AO (height), Normal strength, Roughness mod #171

Open TokisanGames opened 1 year ago

TokisanGames commented 1 year ago

We can use height as AO for free. We can use per channel AO and strength. I'm currently experimenting with it on our many textures and so far it's something we'll definitely be using on most of our textures.

I'm also finding the need for per channel normal strength, and roughness mod.

TokisanGames commented 1 year ago

I attempted to add height as AO today, however I'm finding that either the indexing or the depth blending operates in a strange square pattern that makes this not possible at the moment. I think this also causes a lot of issues I have when painting textures and attempting to blend them in general.

image

This will have to wait until we can rework the texturing to a more artist friendly method.

In the meantime AO can be added as a whole by enabling the shader override and adding this in the pbr section. Change 0.4 to taste:

AO = color.a;
AO_LIGHT_AFFECT = 0.4;