opengl.model: Use 'default_Shine' for all lit models.

This commit is contained in:
Rod Kay
2024-02-23 18:35:07 +11:00
parent 4717490e43
commit d1f702aab5
3 changed files with 11 additions and 11 deletions

View File

@@ -83,14 +83,14 @@ is
the_Vertices (the_Vertices'First).Site := north_Pole;
the_Vertices (the_Vertices'First).Normal := Normalised (north_Pole);
the_Vertices (the_Vertices'First).Coords := (S => 0.5, T => 1.0);
the_Vertices (the_Vertices'First).Shine := 0.5;
the_Vertices (the_Vertices'First).Shine := default_Shine;
the_Sites (the_Vertices'Last) := south_Pole;
the_Vertices (the_Vertices'Last).Site := south_Pole;
the_Vertices (the_Vertices'Last).Normal := Normalised (south_Pole);
the_Vertices (the_Vertices'Last).Coords := (S => 0.5, T => 0.0);
the_Vertices (the_Vertices'Last).Shine := 0.5;
the_Vertices (the_Vertices'Last).Shine := default_Shine;
for lat_Id in 2 .. lat_Count - 1
loop
@@ -107,7 +107,7 @@ is
the_Vertices (vert_Id).Normal := Normalised (the_Site);
the_Vertices (vert_Id).Coords := (S => a / Degrees_360,
T => 1.0 - b / Degrees_180);
the_Vertices (vert_Id).Shine := 0.5;
the_Vertices (vert_Id).Shine := default_Shine;
for long_Id in 1 .. long_Count
loop
@@ -125,7 +125,7 @@ is
the_Vertices (vert_Id).Normal := Normalised (the_Site);
the_Vertices (vert_Id).Coords := (S => a / Degrees_360,
T => 1.0 - b / Degrees_180);
the_Vertices (vert_Id).Shine := 0.5;
the_Vertices (vert_Id).Shine := default_Shine;
end loop;
end loop;