Commit c740d32c authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

fixed SimpleRaycaster not writing depth image

parent 30e6fec6
......@@ -68,8 +68,10 @@ namespace campvis {
if (p_enableShadowing.getValue())
_shader->setUniform("_shadowIntensity", p_shadowIntensity.getValue());
glEnable(GL_DEPTH_TEST);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
QuadRdr.renderQuad();
glDisable(GL_DEPTH_TEST);
LGL_ERROR;
output.second->deactivate();
......
......@@ -115,6 +115,7 @@ namespace campvis {
}
else if (getInvalidationLevel() & RAYCASTER_INVALID) {
_raycaster.process(data);
p_outputImage.issueWrite();
}
validate(INVALID_RESULT | PG_INVALID | EEP_INVALID | RAYCASTER_INVALID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment