# Can I connect Texture Sample node to Opacity Mask in Volumetric Distance Decal(Experimental) Material ?

**URL:** <https://forums.unrealengine.com/t/can-i-connect-texture-sample-node-to-opacity-mask-in-volumetric-distance-decal-experimental-material/454974>\
**Category:** Rendering\
**Tags:** experimental, unreal-engine, question\
**Created:** [September 7, 2019, 2:55pm UTC](https://forums.unrealengine.com/t/can-i-connect-texture-sample-node-to-opacity-mask-in-volumetric-distance-decal-experimental-material/454974 "2019-09-07T14:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_27ec5182dec4ea30ed4678bbb43946a0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_27ec5182dec4ea30ed4678bbb43946a0](https://forums.unrealengine.com/u/Anonymous_27ec5182dec4ea30ed4678bbb43946a0)\
**Post date:** [September 7, 2019, 2:55pm UTC](https://forums.unrealengine.com/t/can-i-connect-texture-sample-node-to-opacity-mask-in-volumetric-distance-decal-experimental-material/454974/1 "2019-09-07T14:55:30Z")

</div>

I can connect Texture Sample to BaseColor and EmissiveColor.  
But when it’s connected to OpacityMask, editor shows an error “[SM5] /Engine/Private/DeferredDecal.usf(96,60-72): error X4014: cannot have gradient operation inside loops with divergent flow control” and nothing is rendered.
