Ambient Light #84
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, Yes you can achieve this by using Image-based lighting. The good thing about this is that you can use an environment as a light source instead of an solid color, which can give you reflections. An example how to use it can be found at https://codesandbox.io/s/github/jnsmalm/pixi3d-sandbox/tree/master/standard-material .You can find additional environments at https://ibl.pixi3d.org/ If you still just want a single color to act as ambient light you can do this as well. Just create a image-based lighting object with single color cube maps. let ibl = new ImageBasedLighting(
Cubemap.fromColors(new Color(1,0,0)),
Cubemap.fromColors(new Color(0,0,0))
); The first param is color for diffuse, the second for specular. Experiment to get the look you want. |
Beta Was this translation helpful? Give feedback.
-
for people interested in white light
|
Beta Was this translation helpful? Give feedback.
Hey,
Yes you can achieve this by using Image-based lighting. The good thing about this is that you can use an environment as a light source instead of an solid color, which can give you reflections. An example how to use it can be found at https://codesandbox.io/s/github/jnsmalm/pixi3d-sandbox/tree/master/standard-material .You can find additional environments at https://ibl.pixi3d.org/
If you still just want a single color to act as ambient light you can do this as well. Just create a image-based lighting object with single color cube maps.
The first param is color for …