Exporting the glb from unity has bad lighting #629
Unanswered
PaulYoSwek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm exporting a dynamically created object from my unity scene.
But in the created .glb file the object looks nothing like in the scene, the lighting is way of.
my code:
Unity scene looks like:
and the .glb file looks like:
The reason why the red bricks are white is because I was trying a shader given by this glb plugin shown in image below
![image](https://private-user-images.githubusercontent.com/25900640/252492540-8fdd2656-0887-4f1e-85f0-750c100734c7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTA5ODIsIm5iZiI6MTczOTI5MDY4MiwicGF0aCI6Ii8yNTkwMDY0MC8yNTI0OTI1NDAtOGZkZDI2NTYtMDg4Ny00ZjFlLTg1ZjAtNzUwYzEwMDczNGM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2MTgwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMDg3NzMwMmU2Nzk1MWZlYzU1MTMxYjI3ZGY0YWE4NGM2NzcxNDBkNDM3MGJlMjIzZGZkYjI3OTMyYTVlNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fP25SUbwenpXPM8I1qA-Yn3juaukBFkpU-wE-65BDHU)
Thought that might fix the weird lighting but no.
Anyone has any idea what I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions