Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Livealot on August 25, 2014, 03:13:53 PM
-
I attended the Windows Porting Event at Unite last week and ran into one problem with NGUI. My project UI used the basic Refractive atlas provided in the NGUI example folder and the Transparent/Refractive shader. But the project would not compile to WinPhone8 and threw an error related to the shader.
The helpful Microsoft staff at the porting lab could not figure out a solution, so I'm passing it along in case it can be fixed on the NGUI side. I hope that helps.
Thanks!
-
What was the error?
-
Shader error in 'Transparent/Refractive': 'vert': output parameter 'o' not completely initialized at line 64
When the Microsoft shader looked at it, he didn't see anything obvious, but thought there might be an issue with how the Windows platform needs "four zeros, not just two". That's all over my head but passing along what he said.
-
Ah. Looking at it, it seems to be wrapped in a define. Remove the #if lines, and it should work fine.