Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 2 files). Show all
Unified · Split
| @@ -207,7 +207,7 @@ void MetavoxelSystem::render() { · 206 unmodified lines | ||
| 207 | 207 | glm::vec4 nearClipPlane, farClipPlane; |
| 208 | 208 | Application::getInstance()->computeOffAxisFrustum( |
| 209 | 209 | left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane); |
| 210 | − program->setUniformValue(locations->near, nearVal); | |
| 210 | + program->setUniformValue(locations->nearLocation, nearVal); | |
| 211 | 211 | program->setUniformValue(locations->depthScale, (farVal - nearVal) / farVal); |
| 212 | 212 | float nearScale = -1.0f / nearVal; |
| 213 | 213 | program->setUniformValue(locations->depthTexCoordOffset, left * nearScale, bottom * nearScale); |
| @@ -630,7 +630,7 @@ void MetavoxelSystem::loadLightProgram(const char* name, ProgramObject& program, · 416 unmodified lines | ||
| 630 | 630 | program.setUniformValue("shadowMap", 3); |
| 631 | 631 | locations.shadowDistances = program.uniformLocation("shadowDistances"); |
| 632 | 632 | locations.shadowScale = program.uniformLocation("shadowScale"); |
| 633 | − locations.near = program.uniformLocation("near"); | |
| 633 | + locations.nearLocation = program.uniformLocation("near"); | |
| 634 | 634 | locations.depthScale = program.uniformLocation("depthScale"); |
| 635 | 635 | locations.depthTexCoordOffset = program.uniformLocation("depthTexCoordOffset"); |
| 636 | 636 | locations.depthTexCoordScale = program.uniformLocation("depthTexCoordScale"); |