FIX : wrong var ref, ADDED : check if shader setup

Signed-off-by: liamviney <liam.viney@b-reel.com>