Maybe it's my card or something that rend2 doesn't like. Anyways, I've been trying out cubemaps and I get this error when r_cubemapping is enabled. From first glance, it seems like it doesn't like platform toolset 120:
var_PrimaryLightDir.xyz;
// enable when point lights are supported as primary lights
//sqrLightDist = dot(L2, L2);
//L2 /= sqrt(sqrLightDist);
NL2 = clamp(dot(N, L2), 0.0, 1.0);
H2 = normalize(L2 + E);
EH2 = clamp(dot(E, H2), 0.0, 1.0);
NH2 = clamp(dot(N, H2), 0.0, 1.0);
reflectance = diffuse.rgb;
reflectance += CalcSpecular(specular.rgb, NH2, NL2, NE, EH2, gloss, shininess);
lightColor = u_PrimaryLightColor * var_Color.rgb;
// enable when point lights are supported as primary lights
//lightColor *= CalcLightAttenuation(float(u_PrimaryLightDir.w > 0.0), u_PrimaryLightDir.w / sqrLightDist);
#if defined(USE_SHADOWMAP)
lightColor *= shadowValue;
#endif
// enable when point lights are supported as primary lights
//lightColor *= CalcLightAttenuation(float(u_PrimaryLightDir.w > 0.0), u_PrimaryLightDir.w / sqrLightDist);
gl_FragColor.rgb += lightColor * reflectance * NL2;
#endif
#else
lightColor = var_Color.rgb;
#if defined(USE_LIGHTMAP)
lightColor *= lightmapColor.rgb;
#endif
gl_FragColor.rgb = diffuse.rgb * lightColor;
#endif
gl_FragColor.a = diffuse.a * var_Color.a;
#if defined(USE_GLOW_BUFFER)
out_Glow = gl_FragColor;
#else
out_Glow = vec4(0.0);
#endif
}
compile log:
0(345) : error C7533: global function textureCubeLod is deprecated after version 120
recursive error after: Couldn't compile shader