# Is it possible to clamp a texture sample to the texture itself and not as a filter?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-clamp-a-texture-sample-to-the-texture-itself-and-not-as-a-filter/399217>\
**Category:** Asset Creation\
**Tags:** draw, unreal-engine, clamp, render-target, question\
**Created:** [June 24, 2017, 6:45pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-clamp-a-texture-sample-to-the-texture-itself-and-not-as-a-filter/399217 "2017-06-24T18:45:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_adc3f730](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_adc3f730](https://forums.unrealengine.com/u/anonymous_user_adc3f730)\
**Post date:** [June 24, 2017, 6:45pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-clamp-a-texture-sample-to-the-texture-itself-and-not-as-a-filter/399217/1 "2017-06-24T18:45:22Z")

</div>

So im using the DrawMaterialToRenderTarget function within the KismetRenderingLibrary and i’m going to be writing a constant negative value (-0.1f) to my RT  
and i would like it to never drop below 0.

The reason i can’t just use the Clamp node within the material editor is because that acts as a “post process” (it is a filter) and i need it to be “real” and actually edit the  
RT its self so that each Texel is never below 0.

---

<div class="post-metadata">

**Author:** ![RapidBlaze](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rapidblaze/32/469605_2.png) [@RapidBlaze](https://forums.unrealengine.com/u/RapidBlaze)\
**Post date:** [July 18, 2019, 5:45pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-clamp-a-texture-sample-to-the-texture-itself-and-not-as-a-filter/399217/2 "2019-07-18T17:45:33Z")

</div>

You need set true to Allow Negative Emissive Color at material details panel
