creating material in SDK?

Posted By: JerahYalyn

creating material in SDK? - 04/18/15 10:00

How do i create a material in VC++ with engine SDK?
if looked in to afuncs.h but I can't seem to figure out how to set it.

thanks!
Posted By: MasterQ32

Re: creating material in SDK? - 04/18/15 10:51

mtl_create + effect_load
Posted By: JerahYalyn

Re: creating material in SDK? - 04/18/15 11:46

Something like this?

MATAERIAL* mat;
mat = mtl_create();
mat.ambient_blue = 255;
Etc...
effect_load(&mat, "shader.fx");
myent->material = mat;
Posted By: MasterQ32

Re: creating material in SDK? - 04/18/15 12:02

yeah, but in C++ you always need -> instead of . for pointers wink
Posted By: JerahYalyn

Re: creating material in SDK? - 04/18/15 13:27

Thanks, I got used to lite-c structure method of setting the shaders and I forgot to use the engine functions of making it. I need to reffer to the manual for all the functions.
© 2024 lite-C Forums