Closed z3moon closed 4 months ago
Why do this in materialparser as oppose to in the GL backend (like a spec constant replacement)? This will have impact the performance for even non-GL backends.
Actually I'm amending this PR as this is not the right place to modify as you mentioned. Let me update this as draft until it's ready.
For OpenGL multiview, it honors the qualifier
layout(num_views = X)
specified in shader files to determine the number of views for multiview.We cannot recompile materials everytime the value changes. So replace the value of num_views with the engine's eye count when shaders compile.