Returns the name of the current “object” whose shader is being run.
string getobjectname()
Returns the name of the current “object” whose shader is being run.
For light/shadow contexts, this is the name of the light object which has the shader bound to it.
For surface/displacement contexts, this is the name of the object being shaded.
For fog shaders, the function will also return the name of the atmosphere object being shaded.