# Grain management

**URL:** <https://forum.logik.tv/t/grain-management/8273>\
**Category:** Flame Questions\
**Tags:** regrain\
**Created:** [April 29, 2023, 12:23pm UTC](https://forum.logik.tv/t/grain-management/8273 "2023-04-29T12:23:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![val](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@val](https://forum.logik.tv/u/val)\
**Post date:** [April 30, 2023, 5:16am UTC](https://forum.logik.tv/t/grain-management/8273/8 "2023-04-30T05:16:27Z")

</div>

Yepp, it`s what I described. But I want to add some small touches to your setup  
Red dots are [id\_Edgy](https://logik-matchbook.org/shader/id_Edgy) matchbox shader. It finds any pixel with a zero and replaces it with something like 0.00001 or as close to 0 as possible. Divide/Mult by 0 is not a good thing in this case.  
Yellow dots are CC nodes that are linked to each other, we will need to alter only the gamma setting to help blend between original grain and generated grain where comp matte is half transparent

 ![someAddOns](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/3/352d9f69afee4847cf490910f952dac386595304.jpeg)

PS How does the temporal sample mix part of your setup work?

PPS Some shots works better when performing all of math in log, not in linear

---

_[View the full topic](https://forum.logik.tv/t/grain-management/8273)._
