opengl: Work on multi-texturing.

This commit is contained in:
Rod Kay
2023-05-15 15:01:32 +10:00
parent 1beb8e1140
commit 139cb01643
12 changed files with 405 additions and 185 deletions

View File

@@ -298,6 +298,7 @@ is
end Texture_is;
overriding
function Texture (Self : in Item) return openGL.Texture.Object
is
@@ -313,8 +314,8 @@ is
is
use openGL.Geometry.texturing;
begin
Self.Textures.Textures (1).Fade := Self.Model.Fade_1;
Self.Textures.Textures (2).Fade := Self.Model.Fade_2;
Self.Textures.Textures (1).Fade := Self.Model.Fade (which => 1);
Self.Textures.Textures (2).Fade := Self.Model.Fade (which => 2);
enable (Self.Textures, Self.Program);