Pass window size as uniform instead of shader program constant. Fixes #143

This commit is contained in:
Emil Axelsson
2016-10-28 10:26:23 +02:00
parent 73e6fcf865
commit cb3ff96e1a
5 changed files with 5 additions and 8 deletions

View File

@@ -561,8 +561,6 @@ void ABufferRenderer::updateRendererData() {
PerfMeasure("ABufferRenderer::updateRendererData");
ghoul::Dictionary dict;
dict.setValue("windowWidth", _resolution.x);
dict.setValue("windowHeight", _resolution.y);
dict.setValue("fragmentRendererPath", std::string(RenderFragmentShaderPath));
dict.setValue("postFragmentRendererPath", std::string(PostRenderFragmentShaderPath));
dict.setValue("maxLayers", MaxLayers);