inherited material create at runtime

cperucca

08-10-2012 16:03:06

Hi there,

is there a way in Mogre to create a new material at runtime which inherits from another material
already parsed ?

i'd like to use ssao structure and inherit from the diffuse_template, but still be able to set
the vertex and fragment shaders i like to the new material i'm creating.

is there any way ?

many thanks.
cp

Tubulii

19-10-2012 20:26:54

I am not totally sure, but I think it is not possible (read something in Ogre forum about this) [this is not a Mogre related questionm anyway, you may find the question in the main Ogre forum ].
My alternative:
Clone the material.