# \[Unity5\] NFAA Errors when publishing

**URL:** https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471
**Category:** Shaders & Materials
**Created:** [March 6, 2015, 3:17pm UTC](https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471 "2015-03-06T15:17:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![topofsteel1](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/topofsteel1/32/555758_2.png) [@topofsteel1](https://discussions.unity.com/u/topofsteel1)
#### Post date: [March 6, 2015, 3:17pm UTC](https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471/1 "2015-03-06T15:17:36Z")

</div>

When I publish, I get the attached errors from the NFAA shader. It’s what came in from the effects standard package. And i’m using FXAA3. It builds ok, but what is causing the errors?

 ![2003102--129440--NFAA Shader Error.png](https://europe1.discourse-cdn.com/unity/original/3X/1/5/156ce34f16a698e40db96e1a756c7ac9dd63e2b7.png)

---

<div class="post-metadata">

### Author: ![oglepole](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@oglepole](https://discussions.unity.com/u/oglepole)
#### Post date: [March 17, 2015, 2:12am UTC](https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471/2 "2015-03-17T02:12:19Z")

</div>

Getting the same error as well - would be curious as to the answer!

---

<div class="post-metadata">

### Author: ![topofsteel1](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/topofsteel1/32/555758_2.png) [@topofsteel1](https://discussions.unity.com/u/topofsteel1)
#### Post date: [March 17, 2015, 8:29am UTC](https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471/3 "2015-03-17T08:29:15Z")

</div>

I’m guessing your using deferred rendering? Turn AA off in the quality settings.

---

<div class="post-metadata">

### Author: ![SkermunkelStudios](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@SkermunkelStudios](https://discussions.unity.com/u/SkermunkelStudios)
#### Post date: [July 31, 2015, 12:30pm UTC](https://discussions.unity.com/t/unity5-nfaa-errors-when-publishing/570471/4 "2015-07-31T12:30:45Z")

</div>

You can fix this by adding:

#pragma target 3.0

to the end of the CGProgram declarations
