[renderer] Add visibility check