Forum Discussion
AbdulVR
11 years agoHonored Guest
Distortion mesh gaps
Hello, I was wondering what kind of voodoo I need to apply to the distortion mesh coordinates to get it to fill the entire visible area. This is what I have so far: http://i61.tinypic.com/350a104.p...
AbdulVR
11 years agoHonored Guest
Here's what I am doing atm in the vertex shader which doesn't seem to work:
Where misc = { 2.0f, +/-1.0f, depth, N/A}
Abdul
//--------------------------------------------------------------------------------------------------
PSI_Norm VS_DistortionMeshGBuffer( in float2 ndc_pos : POSITION)
{
PSI_Norm output = (PSI_Norm)0;
// Fetch some constants
float4 misc = g_GenericConsts[0];
// Position in clip space
output.m_Position.x = ndc_pos.x * misc.x + misc.y;
output.m_Position.y = ndc_pos.y;
output.m_Position.z = misc.z;
output.m_Position.w = 1.0f;
// Normal
output.m_Normal = g_VP_ViewToWorldMat[2].xyz * -1.0f;
// Done
return output;
}
Where misc = { 2.0f, +/-1.0f, depth, N/A}
Abdul
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 11 months ago
- 10 months ago
- 6 months ago
- 5 months ago