Studiolights: Radiance icons were inverted.

This commit is contained in:
Jeroen Bakker 2018-06-18 15:45:55 +02:00
parent 7747d4cecf
commit 7356cec0c6
1 changed files with 1 additions and 1 deletions

View File

@ -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);