I've exported again and this time was able to run the WS version (from the Universal export), but was still unable to get WP going.
Visual studio showed the build was successful, so I ran the debug, this is what came up in the output
=============================================================================================
'WWAHOST.EXE' (Script): Loaded 'Script Code (MSAppHost/2.0)'.
Unhandled exception at line 1721, column 4 in ms-appx://19b62d92-1d96-45c8-a28e-fa277857b857/c2runtime.js
0x800a138f - JavaScript runtime error: Unable to set property 'hasCurrentMatMV' of undefined or null reference
The program '[4944] WWAHOST.EXE' has exited with code 0 (0x0).
=============================================================================
The section of code it referred me to was in c2runtime.js below is the section:
-----------------------------------------------------------------------------------------------------
var i, len, s;
for (i = 0, len = this.shaderPrograms.length; i < len; i++)
{
s = this.shaderPrograms;
s.hasCurrentMatMV = false;
if (s.locMatP)
{
this.gl.useProgram(s.shaderProgram);
this.gl.uniformMatrix4fv(s.locMatP, false, this.matP);
}
}
-------------------------------------------------------------------------------------------------------
I'm only one step above total noob status when it comes to javascript.
Any JS geniuses out there that could give e some advice?
I have tried changing the s.hasCurrentMatMV = false; to true (as well as the false within the 'IF')
but that didn't make any difference.