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

Setting the transparency value in MaterialProcessor.cs when reading in .mtl files #62

Open
damro opened this issue Oct 13, 2016 · 0 comments

Comments

@damro
Copy link
Collaborator

damro commented Oct 13, 2016

The transparency when reading in .mtl files is not set.

See:
https://github.com/dicarlolab/ThreeDWorld/blob/master/Assets/Scripts/Editor/MaterialProcessor.cs#L86-L93

The "d" value corresponds to the transparency in the .mtl file.
The "alpha" channel of the Albedo corresponds to the transparency in Unity.

Thus, the Albedo alpha channel in Unity should be set to the d value of the .mtl file to reflect transparency correctly.

This should happen in line 128. Just check if it works.

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