1 (edited by grenouille 2020-04-04 07:04:07)

Topic: [SOLVED] Blending between two panorama textures

Hello,

Thank you for this awesome asset.

I just acquired it and did a bit of research in the API documentation but I'm not quite sure how to proceed.
I use 6 textures with the cube faces renderer to create my panorama, and I'd like to be able to blend between two sets of textures (with a UI Slider or something like that).
I was thinking of rendering two panoramas, one in front of the other, and just fade out the one closest to the camera, but this seems quite inefficient.

I might have to write a custom shader for this but I don't know how I could access the 2 textures in my shader since uPano can only provide 1.

Any idea how I could implement something like this ?

Thank you :)

Re: [SOLVED] Blending between two panorama textures

Hello.

Here is a video on how to do this:
https://www.dropbox.com/s/e3gz47jejr2x0 … s.mp4?dl=0
The script used in the video is attached.

Post's attachments

Attachment icon FadeCubeFaces.cs 1.48 kb, 11 downloads since 2020-04-04 

Re: [SOLVED] Blending between two panorama textures

Thank you very much that's exactly what I was looking for !