IcterusGames / SimpleGrassTextured

Plugin to make grass on Godot 4
MIT License
170 stars 16 forks source link

Custom Material #9

Open moio9 opened 6 months ago

moio9 commented 6 months ago

Add an option to use the original material of a mesh without overwriting the existent material with the custom one. Usefull for big meshes with multiples materials like trees.

jkulawik commented 6 months ago

Can't the shader material just be exposed in the grass node? I looked through grass.gd and it seems like there's no other benefit to it other than streamlining the user experience a bit, I suppose. A huge portion of the code are setters for the shader material which could be done natively.

jkulawik commented 6 months ago

I just noticed that the wind parameters are global, I suppose that's the main reason why the shader isn't exposed.