Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Renderer: SF_NO_VERTEXID_BASE forces the per-cluster draw path (for drivers whose gl_VertexID lacks the base vertex), checked to draw the same
islandmeddb254a925363
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cppindex 856b1266..185b77cd 100644--- a/src/render/Renderer.cpp+++ b/src/render/Renderer.cpp@@ -11,6 +11,7 @@#include <algorithm>#include <atomic>+#include <cstdlib>#include <limits>#include <vector>@@ -470,7 +471,8 @@ bool Renderer::init(std::string& error) {gl::TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GLint(GL_CLAMP_TO_EDGE));}gl::BindTexture(GL_TEXTURE_2D, 0);- vertexIdHasBase_ = checkVertexIdBase();+ // SF_NO_VERTEXID_BASE=1 takes the other path, to check it on drivers that don't need it.+ vertexIdHasBase_ = checkVertexIdBase() && !std::getenv("SF_NO_VERTEXID_BASE");return true;}