Skip to content

Commit

Permalink
Minor adjustment to floor position and size
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor251093 committed Feb 5, 2025
1 parent c27240e commit 5026897
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plugins/PluginKingdomHeartsReCoded_GPU_OpenGL_shaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ vec2 getIngameHudTextureCoordinates(float xpos, float ypos)
// floor label
float bottomLabelWidth = 50.0;
float bottomLabelHeight = 15.0;
float increaseLabelSize = 1.8;
float increaseLabelSize = 1.4;
float labelWidth = (bottomLabelWidth/increaseLabelSize)*heightScale;
float labelHeight = (bottomLabelHeight/increaseLabelSize);
float labelRightMargin = 12.0;
float labelTopMargin = 90.0;
float labelRightMargin = 11.0;
float labelTopMargin = 88.0;
float labelLeftMargin = 256.0*iuTexScale - labelWidth - labelRightMargin;
if (texPosition3d.x >= labelLeftMargin &&
texPosition3d.x < (256.0*iuTexScale - labelRightMargin) &&
Expand All @@ -459,7 +459,7 @@ vec2 getIngameHudTextureCoordinates(float xpos, float ypos)
// floor value
float bottomFloorWidth = 82.0;
float bottomFloorHeight = 15.0;
float increaseFloorSize = 1.8;
float increaseFloorSize = 1.4;
float floorWidth = (bottomFloorWidth/increaseFloorSize)*heightScale;
float floorHeight = (bottomFloorHeight/increaseFloorSize);
float floorRightMargin = 12.0;
Expand Down Expand Up @@ -971,11 +971,11 @@ ivec4 getTopScreenColor(float xpos, float ypos, int index)
// floor label
float bottomLabelWidth = 50.0;
float bottomLabelHeight = 15.0;
float increaseLabelSize = 1.8;
float increaseLabelSize = 1.4;
float labelWidth = (bottomLabelWidth/increaseLabelSize)*heightScale;
float labelHeight = (bottomLabelHeight/increaseLabelSize);
float labelRightMargin = 12.0;
float labelTopMargin = 90.0;
float labelRightMargin = 11.0;
float labelTopMargin = 88.0;
float labelLeftMargin = 256.0*iuTexScale - labelWidth - labelRightMargin;
if (texPosition3d.x >= labelLeftMargin &&
texPosition3d.x < (256.0*iuTexScale - labelRightMargin) &&
Expand All @@ -1000,7 +1000,7 @@ ivec4 getTopScreenColor(float xpos, float ypos, int index)
// floor value
float bottomFloorWidth = 82.0;
float bottomFloorHeight = 15.0;
float increaseFloorSize = 1.8;
float increaseFloorSize = 1.4;
float floorWidth = (bottomFloorWidth/increaseFloorSize)*heightScale;
float floorHeight = (bottomFloorHeight/increaseFloorSize);
float floorRightMargin = 12.0;
Expand Down

0 comments on commit 5026897

Please sign in to comment.