Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Overlay blend rendering for blocks #71

Open
muzikbike opened this issue Jul 21, 2023 · 0 comments
Open

Suggestion: Overlay blend rendering for blocks #71

muzikbike opened this issue Jul 21, 2023 · 0 comments

Comments

@muzikbike
Copy link

This is a feature from MCPatcher that never ended up making it into Optifine when Optifine became the one-stop shop for resource pack stuff, and it's something I'd very much like to see making a return.

MCPatcher had the ability to allow specified translucent blocks to use the "overlay" blend mode (https://en.wikipedia.org/wiki/Blend_modes#Overlay) rather than the usual alpha blending we see in vanilla. This could be used for custom glass which I think looks a lot better than normal glass, and was notably used by Misa's realistic texture pack in conjunction with connected textures to produce this result:
2023-07-21_01 22 18
2023-07-21_01 22 26

Here's an example 16x16 texture I threw together a week or so ago as an experiment which also uses overlay rendering:
2023-07-21_01 24 47
2023-07-21_01 24 59
awesome-glass-demo-1.7.10.zip

Sadly, this feature never made it past 1.7.10 due to MCPatcher's discontinuation and OptiFine never implemented this feature. This is a pity as I find glass textures that utilise it to be far better than if they were to use standard translucency like stained glass does.

The archived source code for MCPatcher is available at https://github.com/pclewis/mcpatcher, so there should be sufficient information in there about how this rendering mode worked. It might be possible to implement overlay-rendered textures as a sixth chunk render layer, such that any desired model can select it (#70) and then use it, which would finally permit a perfect recreation of the 1.7.10 glass. Of course, adding new chunk render layers might screw with other things, so it might need to be toggleable to avoid potential conflicts (or made into a separate mod altogether). This seemed like the best place to suggest this given that it aims to be a replacement for several OF features while also adding in new resource pack capabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant