Use spatial material in shader material?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By siluck

Is it possible to use a spatial material in shader? So I can craft my PBR materials and just assign it as uniform? Instead of drag and drop every single texture (diff, norm, ao, etc.) and compute it in shader script. Use case: Terrain shader with multiple materials for grass, rock, sand, snow, etc.

If this is not possible: How to group shader params?