Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,43 @@
//
// VRORenderParameters.h
// ViroRenderer
//
// Created by Raj Advani on 12/15/15.
// Copyright © 2015 Viro Media. All rights reserved.
//
#ifndef VRORenderParameters_h
#define VRORenderParameters_h
#include <vector>
#include <stack>
#include "VROMatrix4f.h"
class VROLight;
/*
Contains the per-frame render parameters for the current
render pass.
*/
class VRORenderParameters {
public:
std::stack<float> opacities;
std::vector<std::shared_ptr<VROLight>> lights;
std::stack<int> hierarchyDepths;
std::stack<float> distancesFromCamera;
int hierarchyId;
float furthestDistanceFromCamera;
VRORenderParameters() {
opacities.push(1.0);
hierarchyDepths.push(-1);
hierarchyId = 0;
furthestDistanceFromCamera = 0;
distancesFromCamera.push(0);
}
};
#endif /* VRORenderParameters_h */