-
By playing with
Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
irradiance is only used for diffuse lighting. Metals only have specular reflections, you need to provide a cubemap for metals to work. But that cubemap only needs to be a few pixels large and can be only a solid color. |
Beta Was this translation helpful? Give feedback.
-
For benefit of any others reading this, here's working code that makes a simple ambient light that works on metal.
|
Beta Was this translation helpful? Give feedback.
irradiance is only used for diffuse lighting. Metals only have specular reflections, you need to provide a cubemap for metals to work. But that cubemap only needs to be a few pixels large and can be only a solid color.