Skip to content

Texture Overlays - #2165

Open
SnailPerson wants to merge 2 commits into
DonBruce64:masterfrom
SnailPerson:patch-44
Open

SnailPerson wants to merge 2 commits into
DonBruce64:masterfrom
SnailPerson:patch-44

Conversation

@SnailPerson

@SnailPerson SnailPerson commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Empowers Pack Authors with a lot of new fancy shit.
Animated textures, easier dirt overlays, damage overlays, whatever overlays, disco cars, many things, many thighs.

  • Adds rendering.textureOverlays.
  • top entry in the "textureOverlays" will be rendered ontop
  • centerPoint and translation anims use pixels as units, positive X moves right, positive Y moves down, Z is not used
  • Animatable with visibility animations, smooth opacity via blendedAnimations, and bright rendering via isBright. (rotation and scaling anims are ignored)
  • Model compat: vehicles, parts, ordinary definable models, windows, treads, roads, even LittleTiles geometry (for the 1 person using LT)

Code example:

"textureOverlays": [
  		{
    		"texture": "mtsofficialpack:textures/vehicles/scout_brown.png",
    		"centerPoint": [0, 64, 64],
    		"isBright": true,
    		"blendedAnimations": false,
    		"animations": [
      			{
        "animationType": "visibility",
        "variable": "engine_on",
        "clampMin": 0,
        "clampMax": 1
      },
      {
            "animationType": "translation",
            "variable": "40_40_0_cycle",
            "centerPoint": [0.0, 0.0, 0.0],
            "axis": [60.0,0.0.0,100.0],
            "duration": 40
          }
    		]
  }


	],
Bildschirmaufnahme.2026-09-05.um.16.09.38.mov

@SnailPerson

Copy link
Copy Markdown
Contributor Author

@DonBruce64 be proud of me I made useful feature

@LauraDarkez

LauraDarkez commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

your code example has an error in it. you said z is ignored, and also y is 0.0.0

@LauraDarkez

LauraDarkez commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

note for don: this hasnt yet been tested with shaders, i plan on doing so in 1.12 when i have the drive for it

@SnailPerson

Copy link
Copy Markdown
Contributor Author

@DonBruce64 any thoughts?

@SnailPerson

Copy link
Copy Markdown
Contributor Author

@DonBruce64 ?

@DonBruce64

Copy link
Copy Markdown
Owner

@SnailPerson was waiting for Laura to test since she wanted to, but either way request that #2149 be fixed via PR before I merge new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants