Example of glass-like transparency (transptype=1).
MGL code:
call 'prepare2d' alpha on:light on:transptype 1:clf subplot 2 2 0:rotate 50 60:surf a:box subplot 2 2 1:rotate 50 60:dens a:box subplot 2 2 2:rotate 50 60:cont a:box subplot 2 2 3:rotate 50 60:axial a:box
C++ code:
void smgl_type1(mglGraph *gr) // TranspType = 1 { gr->Alpha(true); gr->Light(true); mglData a; mgls_prepare2d(&a); gr->SetTranspType(1); gr->Clf(); gr->SubPlot(2,2,0); gr->Rotate(50,60); gr->Surf(a); gr->Box(); gr->SubPlot(2,2,1); gr->Rotate(50,60); gr->Dens(a); gr->Box(); gr->SubPlot(2,2,2); gr->Rotate(50,60); gr->Cont(a); gr->Box(); gr->SubPlot(2,2,3); gr->Rotate(50,60); gr->Axial(a); gr->Box(); }