Performance Optimizations (#450)

* Make derived transform classes less involved in simulation state
* Add performance measurements in openspaceengine
* Avoid redundant transformation lookups
* Fix bug causing redundant calls to GPULayerManager::bind
* Move water reflectance to alpha component of normal buffer. Remove otherData buffer.
This commit is contained in:
Emil Axelsson
2018-01-08 09:43:41 +01:00
committed by GitHub
parent 237affa80d
commit 4c2f72226f
57 changed files with 296 additions and 205 deletions

View File

@@ -26,15 +26,13 @@
#include <#{fragmentPath}>
layout(location = 0) out vec4 _out_color_;
layout(location = 1) out vec4 gOtherData;
layout(location = 2) out vec4 gPosition;
layout(location = 3) out vec4 gNormal;
layout(location = 1) out vec4 gPosition;
layout(location = 2) out vec4 gNormal;
void main() {
Fragment f = getFragment();
_out_color_ = f.color;
gPosition = f.gPosition;
gNormal = f.gNormal;
gOtherData = f.gOtherData;
gl_FragDepth = normalizeFloat(f.depth);
}