Commit ec89a5a4 authored by Emil Axelsson's avatar Emil Axelsson
Browse files

Fix bugs in volumetric rendering

parent b2f680e6
Showing with 3 additions and 3 deletions
+3 -3
......@@ -22,15 +22,15 @@
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
****************************************************************************************/
#include "PowerScaling/powerScaling_fs.hglsl"
#include "fragment.glsl"
#include "floatoperations.glsl"
in vec4 positionLocalSpace;
in vec4 positionCameraSpace;
Fragment getFragment() {
vec4 position = positionCameraSpace;
float depth = pscDepth(position);
float depth = safeLength(position);
Fragment frag;
frag.color = vec4(positionLocalSpace.xyz + 0.5, 1.0);
......
......@@ -1072,7 +1072,7 @@ void FramebufferRenderer::performRaycasterTasks(const std::vector<RaycasterTask>
raycastProgram->setUniform("mainDepthTexture", mainDepthTextureUnit);
raycastProgram->setUniform("nAaSamples", _nAaSamples);
raycastProgram->setUniform("windowSize", _resolution);
raycastProgram->setUniform("windowSize", static_cast<glm::vec2>(_resolution));
glDisable(GL_DEPTH_TEST);
glDepthMask(false);
......
Supports Markdown
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