Material parameters and shader uniforms

Hi, I have two questions:

How to get material parameters in shader?
How to set shader unifroms from c++ side?

I know they are basic, but I havent found answer for them.

Thanks for help.

Ok I just found that: https://urho3d.fandom.com/wiki/Custom_shader_parameters
Weird that I overlooked that earlier.
I think I got everything I needed. :smiley:

1 Like

Hi and welcome to the forums! :confetti_ball:

Related Pages section is easily-missed.
From official docs:
https://urho3d.github.io/documentation/HEAD/_materials.html
https://urho3d.github.io/documentation/HEAD/_shaders.html

2 Likes

Off topic, yeah I share the opinion that it is easily missed. Something to keep in mind when we revamp the website one day.

1 Like