Studiolights: Radiance icons were inverted.
This commit is contained in:
parent
7747d4cecf
commit
7356cec0c6
|
@ -729,7 +729,7 @@ static uint *studiolight_radiance_preview(StudioLight *sl, int icon_size)
|
|||
normal[0] = dx * 2.0f - 1.0f;
|
||||
normal[1] = dy * 2.0f - 1.0f;
|
||||
float dist = len_v2(normal);
|
||||
normal[2] = -sqrtf(1.0f - SQUARE(dist));
|
||||
normal[2] = sqrtf(1.0f - SQUARE(dist));
|
||||
|
||||
float direction[3];
|
||||
reflect_v3_v3v3(direction, incoming, normal);
|
||||
|
|
Loading…
Reference in New Issue