working on Cg shader support