add updateTime function to update shader clock