r1sc / Open76

Interstate '76 engine reimplementation
GNU General Public License v3.0
52 stars 3 forks source link

Render Texture for Rear View Mirror #16

Closed JJJohan closed 5 years ago

JJJohan commented 5 years ago

mirror

I feel bad for not having really fixed any of the open issues so I took another pass at the reverse mirror one. The render texture is 256x128 although it still feels a little too "high resolution" 😛. The near/far clip planes no doubt need some adjusting to better reflect the look of the original game. Naturally I masked out the 'first person' car parts from the rear view mirror camera's culling mask.

The mask area of the texture (i.e. palette index 1) is written to a separate single-channel mask texture and then used for both the render texture and the original texture to nicely combine the two into a functional rear view mirror.