Added support for objects and shaders.

Signed-off-by: Arné Schreuder <arn3@arn3.com>