-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jak3] Misc texture anim fixes (#3732)
- fix issue where animated textures that use the size-override feature, and aren't being animated would show up as black - fix for black water in spargus - fix issue where animated texture uses another animated texture as an input wouldn't get the animated version. - fix math mistake in how animated texture rotations are handled. This could cause textures to not rotate when a positions were rotated, but textures (st's) weren't. - fix definition of the ring texture to handle set-alpha-texture-anim-layer-func ![image](https://github.com/user-attachments/assets/979748b0-7abf-46a5-bf9d-693fb0ef34fb) ![image](https://github.com/user-attachments/assets/3011662c-bfec-4ce9-ad72-8853b3784f77) https://github.com/user-attachments/assets/0242a59d-62bd-4799-8f6f-2a0aba63649f Co-authored-by: water111 <[email protected]>
- Loading branch information
Showing
7 changed files
with
164 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#version 410 core | ||
|
||
uniform sampler2D tex_T0; | ||
out vec4 color; | ||
in vec2 tex_coord; | ||
|
||
void main() { | ||
color = texture(tex_T0, tex_coord); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#version 410 core | ||
|
||
layout (location = 0) in vec2 position_in; | ||
|
||
out vec2 tex_coord; | ||
|
||
void main() { | ||
gl_Position = vec4(position_in, 0, 1.0); | ||
tex_coord = (position_in + vec2(1.0, 1.0)) * 0.5; | ||
} |