Permalink
Browse files

Интенсивность отбрасываемой тени теперь зависит от прозрачности объекта

  • Loading branch information...
1 parent a3defb9 commit f9250ad5c0d96a2f5710b5c627eee543ee6467ed @flexoid committed Sep 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/raytracer.cpp
View
@@ -105,7 +105,7 @@ float RayTracer::Shadow(Vector3 point, Primitive* pointPrim, Light* light)
Vector3 p;
Primitive* primitive = Trace(Ray(light->pos, point), p);
if (primitive && primitive != pointPrim)
- return 0.0f;
+ return primitive->material.transperancy;
else
return 1.0f;
}

0 comments on commit f9250ad

Please sign in to comment.