545,7 → 545,7 |
// --------------- reflection at "reflection" probability --------------------- |
// ---------------------------------------------------------------------------- |
case SURF_REFLE: |
p_ref = rand.Uniform(0.0, 1.0); |
//p_ref = rand.Uniform(0.0, 1.0); |
if(p_ref < reflection) { // se odbije |
cosTi = in.GetK() * n; |
transmit = in.GetK() - 2*cosTi*n; |
560,7 → 560,7 |
|
// total reflection from n1 to n2 with R probbability |
case SURF_IMPER: |
p_ref = rand.Uniform(0.0, 1.0); |
//p_ref = rand.Uniform(0.0, 1.0); |
if(p_ref < reflection) { // se odbije |
cosTi = in.GetK() * n; |
if(TMath::Abs(cosTi) < cosTtotal) { // totalni odboj |
643,7 → 643,7 |
TVector3 activePosition(center); |
activePosition += TVector3(_d, 0, 0); |
TVector3 normal(1,0,0); |
grease.Set(activePosition, normal, 0.95*a/2.0); |
grease.Set(activePosition, normal, 0.80*a/2.0); |
|
if(fresnel) for(int i=0; i<6; i++) s_side[i].SetFresnel(1); |
|