Hi shelibartov12,
Here is a tiny little file showcasing how I handle shadow masks. I mentioned “how I do it” as there are many other options. To use it as a mask is just one option, in conjunction with the Adjustment layer in Ae.
Experiment with Hue/Sat/Value, or check out blend modes. I have discussed Blend modes here on Cineversity.
Here is the smallest setup I can think of as an example. A cylinder on a plane, with an Area and Dome light.
https://www.dropbox.com/s/qf9ksqorpwn8pae/CV3_S26_drs_22_RSac_01.zip?dl=0
Click on the adjustment layer and then adjust the curve. This is a simplified set up, ACES parts are left out as the “mechanic” of the compositing were the target here/
My idea is, as mentioned, to have saturation and value working on it, eventually, Hue, if you like to adjust the shade of it, also here via mask.
If you want powerful control, you need to know all the parts that matter in your scene. Without that knowledge, you follow a cookie-cutter procedure, which limits your ability to work in the way you like.
Without Global Illumination, that was an easy task.
What you need to do is to get more into AOVs. Render, you Beauty pass out. Then explore all the parts of AOV that would lead to composing the Beautypass. I have no idea to make that learning process faster.
This will allow you to see everything that AOVs deliver and what is light, shadow, and GI, besides all the other influences.
Each project might create a different mix. Some do not need other AOVs. One of the key ideas here is that it is not that simple to decide what is shadow and what is light when it is a mixture of several light sources, including EVERY surface that bounces light – becoming so a light source by itself.
All the best