5 * Revision 1.1.1.1 1995/10/24 10:20:28 cernlib
9 #include "geant321/pilot.h"
10 #if defined(CERNLIB_CG)
11 *CMZ : 3.21/02 29/03/94 15.41.27 by S.Giani
13 SUBROUTINE GDSHAD(LINCOL,APROSC)
15 ******************************************************************
17 * Function: Recieve light intensity and angle with surface *
18 * Compute colour shading for the surface *
21 * LINCOL = colour code *
22 * APROSC = inclination between light rays and surface *
26 ******************************************************************
28 #include "geant321/gcbank.inc"
29 #include "geant321/gcunit.inc"
30 #include "geant321/cggpar.inc"
31 #include "geant321/cghpar.inc"
32 #include "geant321/cgctra.inc"
33 #include "geant321/cgcedg.inc"
34 #include "geant321/gcdraw.inc"
35 #include "geant321/gcflag.inc"
37 #include "geant321/gctrak.inc"
38 #include "geant321/gcrayt.inc"
45 ELSEIF(LINCOL.EQ.3)THEN
47 ELSEIF(LINCOL.EQ.4)THEN
49 ELSEIF(LINCOL.EQ.5)THEN
51 ELSEIF(LINCOL.EQ.6)THEN
53 ELSEIF(LINCOL.EQ.7)THEN
56 * print *,'color not supported'
61 ******* AAA=AAA*123.456789
68 IF(SMAX.GT.0.99)SMAX=1.0001
69 IF(APROSC.GT.SMIN.AND.APROSC.LE.SMAX)THEN
72 ** IF((APRO-SMIN).GT.QCD)THEN
73 LINCOL=LINCOL+(I+1)/1.5
88 * print *,aprosc,'=aprosc'