Archive 17/01/2023.

Material parameters and shader uniforms

Taqer

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.

Taqer

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:

jmiller

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

weitjong

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