fix(renderer): transparency color + handle anchors not rendering
This commit is contained in:
parent
b80eb03f9d
commit
940109b0b9
|
@ -73,7 +73,7 @@ void main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
vec4 studPx = texture(studs, vec3(vTexCoords, vSurfaceZ));
|
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) {
|
vec3 calculateDirectionalLight(DirLight light) {
|
||||||
|
|
|
@ -233,6 +233,8 @@ void renderHandles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2d square overlay
|
// 2d square overlay
|
||||||
|
glDisable(GL_CULL_FACE);
|
||||||
|
|
||||||
identityShader->use();
|
identityShader->use();
|
||||||
identityShader->set("aColor", glm::vec3(0.f, 1.f, 1.f));
|
identityShader->set("aColor", glm::vec3(0.f, 1.f, 1.f));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue