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

Translucency support #413

Open
bstordeur opened this issue Mar 17, 2024 · 2 comments
Open

Translucency support #413

bstordeur opened this issue Mar 17, 2024 · 2 comments

Comments

@bstordeur
Copy link

This isn't an issue, but a feature request.

Would be cool if the tools could support some kind of translucency system (for stuff like plants, fabric, basically anything opaque but thin enough to still less light pass through).
The code is basically already there I feel with "alpha" which already does this, would just need a separate key that does the same thing but just not apply the transparency.

Some bonus features:

  • a toggle to tint the lighting with the texture ("alpha" already does this, but you don't always want it);
  • a new color translucency key to manually control how the light going through will be tinted.

I know translucency is kind of a misnomer for this, but it's how it's most often called, not sure if there's a better name, light transmission maybe?

@4LT
Copy link
Contributor

4LT commented Mar 17, 2024

Yes, "Transmission" is the term for what you're describing in computer graphics literature. There is already specular transmission in the tools, I think, via texture projection. I believe what you're describing would be diffuse transmission, where light penetrating a surface would scatter on the opposite side, as well as lighting the back face.

Basically what's described here w/ the BTDF: https://en.wikipedia.org/wiki/Bidirectional_scattering_distribution_function

@Paril
Copy link
Collaborator

Paril commented Mar 19, 2024

This was discussed in the Discord, and I think it might already exist as _light_alpha or something. Need to double-check.

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

3 participants