I've been having a hell of a time getting the CreateMaterial function to work.
Here's how I'm going about using it:

KeyValues *keys = new KeyValues("shadername");
keys->SetInt("$shaderparameter", 1);
etc..
m_pMaterial=materials->CreateMaterial("materialname", keys);

There is no complaining in the console when this code is run, but my mod crashes
when the material is used. Any help would be much appreciated.

Justin

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to