Ejemplo n.º 1
0
        protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
        {
            VFXExpression matrix          = new VFXExpressionExtractMatrixFromMainCamera();
            VFXExpression fov             = new VFXExpressionExtractFOVFromMainCamera();
            VFXExpression nearPlane       = new VFXExpressionExtractNearPlaneFromMainCamera();
            VFXExpression farPlane        = new VFXExpressionExtractFarPlaneFromMainCamera();
            VFXExpression aspectRatio     = new VFXExpressionExtractAspectRatioFromMainCamera();
            VFXExpression pixelDimensions = new VFXExpressionExtractPixelDimensionsFromMainCamera();

            return(new[] { matrix, fov, nearPlane, farPlane, aspectRatio, pixelDimensions });
        }
Ejemplo n.º 2
0
        protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
        {
            VFXExpression matrix          = new VFXExpressionExtractMatrixFromMainCamera();
            VFXExpression fov             = new VFXExpressionExtractFOVFromMainCamera();
            VFXExpression nearPlane       = new VFXExpressionExtractNearPlaneFromMainCamera();
            VFXExpression farPlane        = new VFXExpressionExtractFarPlaneFromMainCamera();
            VFXExpression aspectRatio     = new VFXExpressionExtractAspectRatioFromMainCamera();
            VFXExpression pixelDimensions = new VFXExpressionExtractPixelDimensionsFromMainCamera();
            VFXExpression depthBuffer     = new VFXExpressionGetBufferFromMainCamera(VFXCameraBufferTypes.Depth);
            VFXExpression colorBuffer     = new VFXExpressionGetBufferFromMainCamera(VFXCameraBufferTypes.Color);

            return(new[] { matrix, fov, nearPlane, farPlane, aspectRatio, pixelDimensions, depthBuffer, colorBuffer });
        }