TokisanGames / Terrain3D

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

Multiples Texture for Auto Shader #528

Open HeroStudiosBR opened 1 day ago

HeroStudiosBR commented 1 day ago

Description

You could add a feature or at least define an array of texture indexes for the autoshader, from what I saw it works for two indexes, it would be nice to be able to make different surfaces than your own height textures. Exemple: Vulcanic Biome with surface red grass and black stone below

TokisanGames commented 1 day ago

We have provided the ability for you to modify the shader to suit your own needs. If you want to change the textures by XZ location, that's not hard to do. We change textures by scene load. Others have changed them by height. We could put in features to mix 3-10 textures in the same area, or other countless options. Not everyone needs all of these features.

We aim to provide features that will be most commonly used with the focus on high performance and artifact free. It's now up to you to take that framework and craft the specific additional features you need for your game. What you want is one of the easier things to do, so it's a good motivation for you to start learning shaders.

HeroStudiosBR commented 1 day ago

I talk more about having the possibility like in the example image (I had to create two separate instances): Captura de tela 2024-10-24 203122 this would make creating biomes a lot easier for those who don't understand much about shaders (like me)

TokisanGames commented 20 hours ago

I talk more about having the possibility like in the example image

This is yet another example of the endless possibilities we could put in the shader which would make it bloated code. Bloated code in the shader will make it slower as it will contain many features that will be unused by people.

(I had to create two separate instances)

That's unnecessary. You could have just manually painted this in 30 seconds. The newest version has a slope filter on the brush.

this would make creating biomes a lot easier for those who don't understand much about shaders (like me)

You can learn, like the rest of us. If you want to be a professional game developer you need to continually learn. But as I stated, to make your picture, changing the shader or making two instances is entirely unnecessary. You can do it just by learning how to use the tool better.