gh_material LibraryDescriptiongh_material is the module that manages materials: creation, destruction, parameters setting. The fundamental goal of material is to define the final appearence of an object surface. A material can have light reflection coefficients, textures and GPU programs that contribute to the final pixel color. Number of functions: 6
gh_material.createDescriptionCreates a material. LanguagesLua - Python ParametersThis function has no input parameter(s). Return ValuesCode sample
gh_material.bindDescriptionBind the material to the renderer: textures and gpu programs are bound. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_material.set_gpu_programDescriptionSets the GPU program of the material. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_material.get_gpu_programDescriptionSets the GPU program of the material. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_material.add_textureDescriptionAdds a texture to the material. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_material.remove_textureDescriptionRemoves a texture from the material. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
2013-2015 Geeks3D. All Rights Reserved. .:- G3D Network -:. |