Инверсия вектора

This commit is contained in:
2022-12-20 16:04:21 +03:00
parent ac1d6be8c4
commit cb3c4bf5af
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ void main()
if (length(sun.color) > 0)
{
// Данные об источнике относительно фрагмента
L_vertex = normalize(-sun.direction);
L_vertex = normalize(sun.direction);
// Диффузная составляющая
diffuse = max(dot(L_vertex, N), 0.0); // скалярное произведение с отсеканием значений < 0