Custom shader code in vtk

Hey, There are easier ways to achieve translucency rather than customizing shader code. How about actor->GetProperty()->SetOpacity(0.7) instead?