0
$\begingroup$

I am trying to create a scene with instanced object. So far I found a way to do it like this:

Object *object = new Object();
object->set_geometry(myReadMesh);
object->set_tfm(myTransformation);
scene->objects.push_back(object);

Now comes up my problem: How do I set up different shaders per each instance? Unfortunately the shader is set on the geometry level and not on the object level. Thanks all.

$\endgroup$
1
  • $\begingroup$ unusual question... do you really need to do that at the C++ level? $\endgroup$
    – lemon
    Nov 24, 2023 at 19:09

0

You must log in to answer this question.

Browse other questions tagged .