I can place a texture inside the vraymaterial environment map to overide the main reflection but would also like the option to not have anything else reflect into the material/object to save on render time. Is this possible ?
I’ve just tried using dim distance and set it very low. Would this method reduce render times as it doesn’t take into account other objects (or does it still take everything into consideration for reflection calcs) ?
Wouldn’t unticking trace reflections work? Or have I misunderstood.
UNticking trace reflections turns off all reflections including the environmental slot reflections. Basically I need the environment (in the texture slot) to reflect but not any objects.
trace sets
I just wrote a quick VrayGLSL map for exactly this purpose. But it only works for pure mirrors.
#version 110
uniform sampler2D Env;
void main() {
vec3 normal = (gl_FrontFacing) ? vr_Normal : -vr_Normal;
vec3 R = reflect(normal, vr_Direction);
R = (vec4(R,0.0) * vr_CameraToWorld).xyz;
float y = R.z;
R.z = R.y;
R.y = y;
float m = 2.0 * sqrt(pow(R.x,2.0)+pow(R.y,2.0)+pow((R.z+1.0),2.0));
float u = (R.x / m) + 0.5;
float v = (R.y / m) + 0.5;
vec3 envColor = vec3(texture2D(Env, vec2(u,v)));
gl_FragColor = vec4(envColor, 1.0);
}
If you drop it into a VRayLight mtl it’ll give you a mirrored map.