Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
I have the pointer to a BaseShader in my scene. Now I'd like to get the pointer to the BaseMaterial that holds the shader. How can I do that?
BaseShader
BaseMaterial
Cheers, Frank
GetMain() should do the trick
Oh, never noticed that. Thanks, I'll try that!
hi,
Confirmed, thanks @mp5gosu.
That also work if the shader is inside another shader.
Cheers, Manuel