Unity-Technologies / SkyboxPanoramicShader

Skybox shader for support of 360/180/cubemap video and static content
282 stars 67 forks source link

Is it possible to use this shader with a custom texture map? #9

Closed OlegSylver closed 6 years ago

OlegSylver commented 6 years ago

How I can use this shader with a custom texture map? Or how i can change this shader for using with a custom texture map? I have a video texture that include two horizontal lines (one under other). The first line include: Left, Front, Right. The second line include: Top, Back, Bottom.

OlegSylver commented 6 years ago

o.faceXCoordLayouts = float4(0.5,1.5,2.5,1.5); // 1 -3 o.faceYCoordLayouts = float4(0.5,0.5,2.5,0.5); // 4 - 6 o.faceZCoordLayouts = float4(1.5,0.5,1.5,1.5); // 5 -2 o.layout = float3(0,1.0/3.0,1.0/2.0);