Skip to content

Commit

Permalink
cache/item: use correct texture brightness
Browse files Browse the repository at this point in the history
there is some horribleness with it sharing pixel data with the passed in
TextureProvider, but not sharing brightness through it
  • Loading branch information
abextm committed May 24, 2023
1 parent fff3177 commit d0cffee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ else if (item.placeholderTemplateId != -1)
}

RSTextureProvider rsTextureProvider = new RSTextureProvider(textureProvider, spriteProvider);
rsTextureProvider.brightness = JagexColor.BRIGHTNESS_MAX;

SpritePixels spritePixels = new SpritePixels(36, 32);
Graphics3D graphics = new Graphics3D(rsTextureProvider);
Expand Down

0 comments on commit d0cffee

Please sign in to comment.