• Advertisement
Sign in to follow this  

DirectX: How to unwrap the cube map array texture into a cylinder panorama.

This topic is 1242 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


When you render a quad with UV coordinates (0,0) top left to (1,1) bottom right you can render your cubemap as a cylinder panorama with a pixel shader like this:


float4 PS(VS_OUTPUT input): SV_Target{


float heading=input.tex.x*cPI*2;
float pitch=cPI*0.5-input.tex.y*cPI;


float3 ReflectionVector;


return MyTexture0.Sample(MySampler0, ReflectionVector);


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement