# SphereMask ignores passed hardness value?

**URL:** <https://forums.unrealengine.com/t/spheremask-ignores-passed-hardness-value/2016537>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, mask, Rendering, question\
**Created:** [September 11, 2024, 4:48pm UTC](https://forums.unrealengine.com/t/spheremask-ignores-passed-hardness-value/2016537 "2024-09-11T16:48:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mike9](https://forums.unrealengine.com/u/Mike9)\
**Post date:** [September 11, 2024, 4:48pm UTC](https://forums.unrealengine.com/t/spheremask-ignores-passed-hardness-value/2016537/1 "2024-09-11T16:48:10Z")

</div>

I use a dynamic instance of a material with sphere mask node. But strangely passing a hardness value as parameter or constant has no effect and hardness is always 100 when passing a value. Only setting hardness directly in the node works.

So this works as expected resulting in hardness 1:

 ![SphereMask0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/2/5223d57d2c77db1128425726364c03dd1e8b39c9.jpeg)

While a parameter or even a constant like below gets ignored and always result in hardness 100:

 ![SphereMask1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/d/50d0c19e991cebc38ba270f5be8ac4b764c20560.jpeg)

Is there a way to pass a hardness to the sphere mask node during runtime?

---

<div class="post-metadata">

**Author:** ![alessiov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alessiov](https://forums.unrealengine.com/u/alessiov)\
**Post date:** [August 20, 2025, 1:07pm UTC](https://forums.unrealengine.com/t/spheremask-ignores-passed-hardness-value/2016537/2 "2025-08-20T13:07:37Z")

</div>

The solution I found is to divide the parameter by 100 and it works!

 ![Screenshot 2025-08-20 141935](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/3/ff3dcef1324f612252916eae9f65f23be8b0e3ef.jpeg) ![Screenshot 2025-08-20 141958](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/2/df2718983e35af940ae2504d398bc7199fafe078.jpeg)
