Documentation
›
API Reference
›
Object
›
Asset
›
Material
GetShader
Lua
C++
This function gets the material shader. This function does not increment the shader reference count.
Syntax
Shader*
GetShader
()
Returns
Returns the material shader. If the material has no shader, NULL is returned.