Implemented KrInitNodeInfo

This commit is contained in:
2020-06-21 22:42:10 -07:00
parent 0fc6ec1357
commit 4761bbc66b
34 changed files with 293 additions and 35 deletions

View File

@@ -34,6 +34,13 @@
#include "KRStockGeometry.h"
#include "KRDirectionalLight.h"
/* static */
void KRCamera::InitNodeInfo(KrNodeInfo* nodeInfo)
{
KRNode::InitNodeInfo(nodeInfo);
nodeInfo->camera.skybox_texture = -1;
}
KRCamera::KRCamera(KRScene &scene, std::string name) : KRNode(scene, name) {
m_last_frame_start = 0;