4018e52d3027afbed1a7b4fa2a198b6996439834
OpenGL & Vulkan has workarounds when gl_Layer/gl_ViewportIndex isn't supported. In this case a geometry shader will is generated. This geometry shader doesn't follow the GLSL standard and doesn't work on some platforms. This has not been an issue as the platforms that don't support gl_Layer/gl_ViewportIndex don't show the issue. According to the specs gl_Layer and gl_ViewportIndex should be set for each call to EmitVertex. A shader should not rely on that EmitVertex reuses the same memory. Ref https://www.khronos.org/opengl/wiki/Geometry_Shader#Layered_rendering ``` Warning: gl_Layer and gl_ViewportIndex are GS output variables. As such, every time you call EmitVertex, their values will become undefined. Therefore, you must set these variables every time you loop over outputs. ``` Issue detected during development of !129062 Pull Request: https://projects.blender.org/blender/blender/pulls/130506
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
