Function Entity.shader

Returns the shader of entity's material, if available. Otherwise returns null.

Shader shader() @property;