# Vertex clip?

**URL:** <https://forums.unrealengine.com/t/vertex-clip/386879>\
**Category:** Rendering\
**Tags:** unreal-engine, Shaders, hlsl, question\
**Created:** [March 3, 2017, 9:19pm UTC](https://forums.unrealengine.com/t/vertex-clip/386879 "2017-03-03T21:19:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![firelight322](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firelight322](https://forums.unrealengine.com/u/firelight322)\
**Post date:** [March 3, 2017, 9:19pm UTC](https://forums.unrealengine.com/t/vertex-clip/386879/1 "2017-03-03T21:19:40Z")

</div>

Hello,

I don’t believe there is a clip node for vertices. I am trying to us clip() in a custom expression, but Unreal complains about an unmapped expression and seems to believe I am trying to access a local variable.

> LogShaderCompilers:Warning: Failed to compile Material /Engine/Transient.JacketCustomMat for platform PCD3D\_SM5, Default Material will be used in game.

> LogShaderCompilers:Warning: Material.usf(1284,2-9): err0r X4532: cannot map expression to vs\_5\_0 instruction set

> LogShaderCompilers:Warning: LocalVertexFactory.usf(637,3-70): warning X4000: use of potentially uninitialized variable ((unknown))

> LogShaderCompilers:Warning: GpuSkinVertexFactory.usf(561,2-67): warning X4000: use of potentially uninitialized variable ((unknown))

Does anyone know of a different way to clip a vertex in ue shaders? Thank you.

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [September 4, 2024, 7:40pm UTC](https://forums.unrealengine.com/t/vertex-clip/386879/2 "2024-09-04T19:40:24Z")

</div>

ever find a solution?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [September 4, 2024, 9:57pm UTC](https://forums.unrealengine.com/t/vertex-clip/386879/3 "2024-09-04T21:57:49Z")

</div>

My understanding is the HLSL intrinsic function clip() is pixel shader only. I don’t think it can operate in the vertex shader.  
What exactly are you trying to accomplish?

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [September 11, 2024, 5:36pm UTC](https://forums.unrealengine.com/t/vertex-clip/386879/4 "2024-09-11T17:36:49Z")

</div>

seems to not work on desktop renderer either, only works on my android preview tests
