# How can I change the world position and sphere mask node from a transition material, to be a scalar parameter value?

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594>\
**Category:** Game Development\
**Tags:** overlay, unreal-engine, Rendering, question\
**Created:** [June 24, 2023, 11:02pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594 "2023-06-24T23:02:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SprucePointStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sprucepointstudios/32/1119768_2.png) [@SprucePointStudios](https://forums.unrealengine.com/u/SprucePointStudios)\
**Post date:** [June 24, 2023, 11:02pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594/1 "2023-06-24T23:02:35Z")

</div>

I’m currently struggling to create a material for my game, that has a similar effect to a black hole when the enemy is hidden. This material is then supposed to transition with a distorted, emissive fringe on the edge, transitioning into the character’s original, or base material.

I saw a video by CGHOW where they explain how to create nearly what I am looking for, however, they use a world position node and sphere mask to accomplish what they have. I do not want this, I want a scalar parameter value that I can control from a material instance. (Video; [Translucent Overlay Material in UE 5.1 Tutorial | Download Files - YouTube](https://www.youtube.com/watch?v=IqZklG3alm8))

Is there any way that I can make it a scalar parameter?

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 25, 2023, 1:56am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594/2 "2023-06-25T01:56:49Z")

</div>

> [@SprucePointStudios](#):
>
> that has a similar effect to a black hole when the enemy is hidden

I’m not entirely sure what you mean by this, so I’ll just answer your scalar question.

The tutorial already does that to some capacity. Just change the radius variable coming from the parameter collection into a scalar parameter (keep in mind the values you should use for this range in the hundreds, not 0-1).

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/7/b275c7a77b3687471fc7bfd2a84f69770a58bc20.jpeg)

From the little I’ve skimmed through the tutorial, it seems to be an effect centralized around one point. If you want it centralized around itself, you can replace the sphere mask A & B to be as such:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/4/f740d4986a767353d6003c76f8a79924a5ea261f.png)  
The 0 is simply saying we’re centering it at 0,0,0 of the actor

---

<div class="post-metadata">

**Author:** ![SprucePointStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sprucepointstudios/32/1119768_2.png) [@SprucePointStudios](https://forums.unrealengine.com/u/SprucePointStudios)\
**Post date:** [June 27, 2023, 4:23pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594/3 "2023-06-27T16:23:20Z")

</div>

Thank you for the response, it helped me quite a lot with getting the material that I wanted.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 27, 2023, 4:23pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-world-position-and-sphere-mask-node-from-a-transition-material-to-be-a-scalar-parameter-value/1209594/4 "2023-07-27T16:23:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
