Search Unity

Split Alpha Video Shader - Android vs iOS

Discussion in 'Shaders' started by mimminito, May 9, 2017.

  1. mimminito

    mimminito

    Joined:
    Feb 10, 2010
    Posts:
    780
    Hi,

    So I have a Split Alpha shader I am using for my video playback (using MPMP). In the editor and on iOS it works great, one side is for the alpha mask and the other is the video content. When I run this on Android however its flipped and the mask is used as the "video" and the video as the "mask". I assume this is due to how Android/iOS load in the videos as textures, and maybe they come in flipped?

    Any ideas how I can combat this through the shader? Or will I have to programatically switch shaders based on platform?

    Adam