I have found related questions but none of them is exactly what I want.
With tikz I can plot a shaded sphere as follows
\documentclass[crop,tikz]{standalone}
\usepackage{tikz-3dplot}
\usetikzlibrary{3d}
\begin{document}
\tdplotsetmaincoords{110}{-30}
\begin{tikzpicture}[tdplot_main_coords]
\pgfmathsetmacro{\myradius}{3}
\path[tdplot_screen_coords] (0,0) circle (\myradius);
\shade[tdplot_screen_coords,ball color=gray!50,opacity=1] (0,0) circle (\myradius);
\end{tikzpicture}
\end{document}
This is the result:
How can I modify the above code, maybe with a suitable clip, such that only the back half of the sphere shows?







