Crossroads-Development / Crossroads

Crossroads is a mod for Minecraft. It adds a lot of content, and has the design philosophy of "simple pieces, complex contraptions".
MIT License
29 stars 14 forks source link

Texture warping on gateways when scaled #177

Open Da-Technomancer opened 2 years ago

Da-Technomancer commented 2 years ago

Describe the bug The purple 'rift' texture on the gateway is warped or distorted for non-minimum size gateways, and tends to distort further when the gateway angle changes during dialing.

Screenshots [Optional] (Image courtesy of Kortis on the Discord) image

Da-Technomancer commented 2 years ago

Issue is in this section: https://github.com/Crossroads-Development/Crossroads/blob/ac432c4be48af1e74bb6174a447af5773701ecd8/src/main/java/com/Da_Technomancer/crossroads/render/TESR/GatewayControllerRenderer.java#L310-L350

This does not need to be rendered as a three-segment octagon; taking advantage of the cutout render type by switching to a single square polygon encompassing the full octagonal area would simplify the transformations of the vertices, probably eliminating any errors.