Implemented visualization of octrees for debugging occlusion culling algorithms.

Corrected project settings to allow objpack to compile again.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4087
This commit is contained in:
kearwood
2012-09-05 18:14:08 +00:00
parent c74a85d931
commit 527bcb33c3
21 changed files with 264 additions and 45 deletions

View File

@@ -64,7 +64,7 @@ KRMat4 &KRInstance::getModelMatrix() {
return m_modelMatrix;
}
#if TARGET_OS_IPHONE
void KRInstance::loadModel() {
if(m_pModel == NULL) {
@@ -72,6 +72,8 @@ void KRInstance::loadModel() {
}
}
#if TARGET_OS_IPHONE
bool KRInstance::render(KRCamera *pCamera, KRContext *pContext, KRBoundingVolume &frustrumVolume, KRMat4 &viewMatrix, KRVector3 &cameraPosition, KRVector3 &lightDirection, KRMat4 *pShadowMatrices, GLuint *shadowDepthTextures, int cShadowBuffers, KRNode::RenderPass renderPass) {
bool bRendered = KRNode::render(pCamera, pContext, frustrumVolume, viewMatrix, cameraPosition, lightDirection, pShadowMatrices, shadowDepthTextures, cShadowBuffers, renderPass);