VRayGLSTex - Preview is black

We are making some GLSL maps for Max but the material preview is always black. ‘Show preview’ is checked.

I am not sure if we are doing something wrong or not?

I am expecting to see a flat colour for the following:


#version 110

__color uniform vec3 input_color = vec3(1.0, 0.5, 0.25);

uniform float alpha = 1.0;
uniform float gamma = 1.0;

void main() {
  gl_FragColor = vec4(pow(input_color, vec3(1.0 / gamma)), alpha);
}

We are using Max Design 2012, Update 12 and VRay 3.30.05

We also use VRayOSLTex and it seems to be working fine. Has anyone else had this issue?

Currently VRayGLSTex preview is not supported but you could plug that texture into VRayLightMtl or VRayMtl and see the preview of the material instead:

Thanks for the tip! Unfortunately the workaround is not really efficient when dealing with multiple maps.

We will have to exclusively use VRayOSLTex unless this is something that is planned to be released soon, I am not sure if you can give timeframes?