# Colored refraction shadows

**URL:** <https://forums.chaos.com/t/colored-refraction-shadows/108191>\
**Category:** General\
**Created:** [January 4, 2022, 12:00am UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191 "2022-01-04T00:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luma3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/luma3d/32/60622_2.png) [@Luma3d](https://forums.chaos.com/u/Luma3d)\
**Post date:** [January 4, 2022, 12:00am UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/1 "2022-01-04T00:00:23Z")

</div>

Is this possible in Vantage?

---

<div class="post-metadata">

**Author:** ![vladimir.nedev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/vladimir.nedev/32/59224_2.png) [@vladimir.nedev](https://forums.chaos.com/u/vladimir.nedev)\
**Post date:** [January 4, 2022, 12:17pm UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/2 "2022-01-04T12:17:46Z")

</div>

You mean shadows that are colored the same way as the fog color on the V-Ray material ?  
Performance is quite sensitive when shadow rays are involved, so I skipped the material fog there.  
We have an issue to fix this however.

If you disable “affect shadows” on the material and have the proper lighting (fairly large area lights),  
the fog colored shadows should come out as part of the refractive caustics.

Greetings,  
Vladimir Nedev

---

<div class="post-metadata">

**Author:** ![Luma3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/luma3d/32/60622_2.png) [@Luma3d](https://forums.chaos.com/u/Luma3d)\
**Post date:** [January 4, 2022, 6:29pm UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/3 "2022-01-04T18:29:58Z")

</div>

So I tested and apparently Vantage doesn’t support it. See images. One is Vray and 3ds Max 2022. Basic Vraymtl with black diffuse color and a red color in the fog slot. The other is the same scene in Vantage.

 ![Vray colored shadow.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/8/78b9d2bddf80ff4cfc828dab50700010e85c0b72.jpeg)  
 ![Vangtage_no shadows.JPG](https://europe1.discourse-cdn.com/chaosprd/original/3X/e/c/ec78ce2cc3ff19cbd1ee654c9f60375995f2329d.jpeg)

---

<div class="post-metadata">

**Author:** ![vladimir.nedev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/vladimir.nedev/32/59224_2.png) [@vladimir.nedev](https://forums.chaos.com/u/vladimir.nedev)\
**Post date:** [January 4, 2022, 7:09pm UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/4 "2022-01-04T19:09:02Z")

</div>

Yes, that’s what I was trying to explain - it’s not supported currently and we have a logged issue for it.  
Proper support might be costly.

You can disable “affect shadows” on the material, if you really really need this effect.  
(You will get caustics from area lights with this as well.)

Or you can try using the refraction color instead.

Greetings,  
Vladimir Nedev

---

<div class="post-metadata">

**Author:** ![Luma3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/luma3d/32/60622_2.png) [@Luma3d](https://forums.chaos.com/u/Luma3d)\
**Post date:** [January 5, 2022, 1:28am UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/5 "2022-01-05T01:28:21Z")

</div>

Well that worked. Used the refraction color. What’s the difference between the refract color and fog color again?

 ![Vangtage_no shadows.JPG](https://europe1.discourse-cdn.com/chaosprd/original/3X/8/b/8b5112975d35aebeb74485de0c4f34094be72af7.jpeg)

---

<div class="post-metadata">

**Author:** ![vladimir.nedev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/vladimir.nedev/32/59224_2.png) [@vladimir.nedev](https://forums.chaos.com/u/vladimir.nedev)\
**Post date:** [January 5, 2022, 2:45am UTC](https://forums.chaos.com/t/colored-refraction-shadows/108191/6 "2022-01-05T02:45:35Z")

</div>

The final fog color depends on the distance the ray travels inside the object, so it gets darker where the object is thicker.

Greetings,  
Vladimir Nedev
