Question
Shaders created in Vuforia Studio are not working on Hololens, but on mobile (both IOS and Android).
I've developed an shader, which displays flow movement in a pipe.
The shader works fine on Android and IO's, but on the Hololens it looks like the shader is not applied to the model.
Sadly i cannot provide the project, but i am able to share snippets of the shader:
fragment:
float diff = mod(-vUV + t, .024);
float smallerDiff = mod(-vUV + t, .024);
if(diff < 0.008)
{
// ...
vec4 normalInViewSpace = //removed
if (/* removed */)
{
vec3 color = vec3(1.,1.,0.);
gl_FragColor = vec4(color, .5);
}
else
{
discard;
}
}
else
{
discard;
}
vertex:
vNormal = vertexNormal; vec4 vp = vec4(vertexPosition, 1.0); gl_Position = modelViewProjectionMatrix * vp;
The shader is updated at runtime with an interval:
$scope.view.wdg['model-1']['shader'] = "reflect;time f " + z;
Thanks in advance!

