Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
textures [2020/05/25 12:31] – [Example] admintextures [2020/05/25 12:32] – [Example] admin
Line 91: Line 91:
 begin begin
   // request the texture and convert to Gorilla3D texture bitmap.   // request the texture and convert to Gorilla3D texture bitmap.
-  LTexture := GorillaLambertMaterialSource.Texture as TGorillaTextureBitmap;+  LTexture := GorillaLambertMaterialSource1.Texture as TGorillaTextureBitmap;
      
   // start manipulating properties and update them in GPU.   // start manipulating properties and update them in GPU.
   LTexture.BeginSetup();   LTexture.BeginSetup();
   try   try
-        LTexture.MinFilter := TTextureFilter.Nearest; +    LTexture.MinFilter := TTextureFilter.Nearest; 
-        LTexture.MagFilter := TTextureFilter.Nearest; +    LTexture.MagFilter := TTextureFilter.Nearest; 
-        LTexture.Style := LTexture.Style - [TTextureStyle.MipMaps];+    LTexture.Style := LTexture.Style - [TTextureStyle.MipMaps];
   finally   finally
-      LTexture.EndSetup();+    LTexture.EndSetup();
   end;   end;
      
   // re-assign texture to update for shader   // re-assign texture to update for shader
-  GorillaLambertMaterialSource.Texture := LTexture;+  GorillaLambertMaterialSource1.Texture := LTexture;
 end; end;
 </file> </file>