
[ad_1]
Hi all, I need to create water reflection in my sport. I learn few tutorials and understood I would like to make use of second mirrored digicam and render texture than I’ll render in airplane, however I get hassle with the mistaken dimension of render texture, or with airplane I don’t know precisely.
Here is what I achieved:
Here is my world with 2 cameras (first essential, second mirror reflaction)
within the backside is blue airplane what I’m utilizing for render texture, now in play mode I’ll disable haxagons and you may see my rendered texture in airplane:
As you see, the rendered texture, smaller than 3D hexagons.
My render texture has 1024×1024 dimension, and airplane scale is (1, 1, 1), so I don’t know what I’m doing mistaken.
One factor I seen that my essential digicam has isWindowSize property true, when my reflection digicam doesn’t have this one, as a result of it has render texture. I attempted to alter the dimensions of reflection digicam and render texture to match essential’s digicam width and top within the code, however the dimension nonetheless was mistaken.
please present each digicam settings, the digicam fov and projection should even be aligned
Thanks for reply, I’m utilizing this code in lateUpdate, so they need to be the identical:
I feel the issue is my essential digicam isWindowsSized, when my reflation digicam isn’t:
Reflection digicam misplaced its isWindowsSize once I connect targetTexture to it.
Also, it could possibly be some drawback with airplane the place I render the feel. But it has scale(1, 1, 1)
[ad_2]