Hi,
I have 2 cameras placed on the same positionand same rotation, but different Culling masks.
I want to hide a part of the cameras’ view so that I can use an texture to deside on what places on screen camera1’s view is shown and on what screen positions/pixels camera2’s view is shown.
I tried to change the alpha of one camera’s view, but that did not seem to work.
This is my code:
` //if shown according to texture if (tex2D(_TexMap, i.uv).b < _Float) return dot(tex2D(_MainTex, i.uv).rgb, float3(0.3, 0.59, 0.11)) * tex2D(_TexMap, i.uv) * tex2D(_Color, i.uv); //if not shown according to texture col.a = 0; //does not seem to work, what do i type here? return col; `
I hope someone could help me with code or some other tricks.
Thanks,
aWolfKing