fix(renderer): transparency color + handle anchors not rendering

This commit is contained in:
maelstrom 2025-03-06 22:06:41 +01:00
parent b80eb03f9d
commit 940109b0b9
2 changed files with 3 additions and 1 deletions

View file

@ -73,7 +73,7 @@ void main() {
}
vec4 studPx = texture(studs, vec3(vTexCoords, vSurfaceZ));
FragColor = vec4(mix(result, vec3(studPx), studPx.w), 1-transparency);
FragColor = vec4(mix(result, vec3(studPx), studPx.w), 1) * (1-transparency);
}
vec3 calculateDirectionalLight(DirLight light) {

View file

@ -233,6 +233,8 @@ void renderHandles() {
}
// 2d square overlay
glDisable(GL_CULL_FACE);
identityShader->use();
identityShader->set("aColor", glm::vec3(0.f, 1.f, 1.f));