-
Notifications
You must be signed in to change notification settings - Fork 44
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
Ambient light #10
Comments
I went to http://babylonhx.com/pixiambient/ , is the issue that it's transparent? |
Not sure which problems you had, but using your code it works pretty well. Seems like you forgot one thing though, in standard-material.ts make sure you have the following code in "updateUniforms" function:
Also, it will make a difference depending on the settings of the material of the object (metallic and roughness). I'll see if I can add ambient lighting in Pixi3D soon, let me know if you have additional issues. |
My code works just fine, no issues at all. I do have that part in "updateUniforms", it wouldn't work without it: No issues at all, this was just a suggestion for adding ambient light to the framework. Closing this now... |
Thanks for the help, I added your implementation to the develop branch 👍 |
I needed ambient light for a project so I've quickly implemented one: https://github.com/vujadin/pixi3d/tree/ambient-light
Here's the result: http://babylonhx.com/pixiambient/
Couldn't get the right result with other types of light and wasn't able to use image lighting because of a project size limit...
Would be nice to have something like this in the "official" Pixi3D.
The text was updated successfully, but these errors were encountered: