mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
feat: entity translucent pass & test layered transparency pipeline
This commit is contained in:
parent
e7f030f226
commit
7522016e84
19 changed files with 484 additions and 111 deletions
|
|
@ -143,8 +143,10 @@ void BlockWrapsRenderer::draw(const DrawContext& pctx) {
|
|||
|
||||
auto& shader = assets.require<Shader>("entity");
|
||||
shader.use();
|
||||
shader.uniform1i("u_alphaClip", false);
|
||||
shader.uniform1i("u_dithering", 0);
|
||||
shader.uniform1f("u_alphaThreshold", 0.15f);
|
||||
shader.uniform1i("u_opaque", false);
|
||||
shader.uniform1i("u_forward", false);
|
||||
shader.uniform1i("u_forwardLight", false);
|
||||
|
||||
for (const auto& [_, wrapper] : wrappers) {
|
||||
if (wrapper->dirtySides) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue