# Niagara: Is it possible to control spawn rate based on a texture

**URL:** <https://forums.unrealengine.com/t/niagara-is-it-possible-to-control-spawn-rate-based-on-a-texture/456769>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [October 10, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/niagara-is-it-possible-to-control-spawn-rate-based-on-a-texture/456769 "2019-10-10T19:53:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrs300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrs300](https://forums.unrealengine.com/u/jrs300)\
**Post date:** [October 10, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/niagara-is-it-possible-to-control-spawn-rate-based-on-a-texture/456769/1 "2019-10-10T19:53:07Z")

</div>

Hi Folks,

Just wanted to see if there was a way to control spawn rate using a texture in NIagara.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b58cf9e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Post date:** [October 10, 2019, 11:04pm UTC](https://forums.unrealengine.com/t/niagara-is-it-possible-to-control-spawn-rate-based-on-a-texture/456769/2 "2019-10-10T23:04:47Z")

</div>

You should be able to pull color data from a Sample Texture module which you could use to control the spawn rate. However you will probably need to create a custom module to parse the raw texture data in a way that will make sense as a spawn rate.

If you look at the Niagara content examples they have an example of an emitter that uses a texture sample module.

Also texture sampling in Niagara only works with GPU compute emitters.

---

<div class="post-metadata">

**Author:** ![jrs300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrs300](https://forums.unrealengine.com/u/jrs300)\
**Post date:** [October 11, 2019, 9:28pm UTC](https://forums.unrealengine.com/t/niagara-is-it-possible-to-control-spawn-rate-based-on-a-texture/456769/3 "2019-10-11T21:28:02Z")

</div>

Hi Clayton, I can’t seem to reference a texture in a emitter module

 ![289852-compilefails.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/c/d9c7f6dcc4522b8872dc0a3ff790c57d11504a9b.png)

 ![289851-compilesucceeds.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/0/6206f6a2653c10f88c290907e6ed3791ded65882.png)
