OSC updates and video resolution fixes
This commit is contained in:
@@ -41,6 +41,33 @@
|
||||
"max": 175.0,
|
||||
"step": 0.1
|
||||
},
|
||||
{
|
||||
"id": "basePanDegrees",
|
||||
"label": "Base Pan",
|
||||
"type": "float",
|
||||
"default": 0.0,
|
||||
"min": -180.0,
|
||||
"max": 180.0,
|
||||
"step": 0.1
|
||||
},
|
||||
{
|
||||
"id": "baseTiltDegrees",
|
||||
"label": "Base Tilt",
|
||||
"type": "float",
|
||||
"default": 0.0,
|
||||
"min": -120.0,
|
||||
"max": 120.0,
|
||||
"step": 0.1
|
||||
},
|
||||
{
|
||||
"id": "baseRollDegrees",
|
||||
"label": "Base Roll",
|
||||
"type": "float",
|
||||
"default": 0.0,
|
||||
"min": -180.0,
|
||||
"max": 180.0,
|
||||
"step": 0.1
|
||||
},
|
||||
{
|
||||
"id": "panDegrees",
|
||||
"label": "Pan",
|
||||
|
||||
@@ -71,6 +71,9 @@ float4 shadeVideo(ShaderContext context)
|
||||
? buildCylindricalRay(screen, outputAspect, tanHalfFov)
|
||||
: buildRectilinearRay(screen, outputAspect, tanHalfFov);
|
||||
|
||||
ray = rotateZ(ray, radiansFromDegrees(baseRollDegrees));
|
||||
ray = rotateX(ray, radiansFromDegrees(-baseTiltDegrees));
|
||||
ray = rotateY(ray, radiansFromDegrees(basePanDegrees));
|
||||
ray = rotateZ(ray, radiansFromDegrees(rollDegrees));
|
||||
ray = rotateX(ray, radiansFromDegrees(-tiltDegrees));
|
||||
ray = rotateY(ray, radiansFromDegrees(panDegrees));
|
||||
|
||||
Reference in New Issue
Block a user