Looks like UDMF vertical texture scaling is broken when negative scale is used.
What I've expected:
What I've got:
[gzdoom-g2.1.pre-385] UDMF texture scale bug
Moderator: Graf Zahl
- MaxED
- Developer
- Posts: 47
- Joined: Fri Aug 03, 2012 0:06
[gzdoom-g2.1.pre-385] UDMF texture scale bug
- Attachments
-
- negativescalebug.wad
- (9.12 KiB) Downloaded 38 times
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: [gzdoom-g2.1.pre-385] UDMF texture scale bug
Fixed. This was a simple case of badly applied texture clamping. For negative scales the texture ended up in texture coordinate range [-1..0] where only [0..1] would work. The code to correct this was already there for camera textures (which are created upside down due to OpenGL's nature) but was missing for normal ones.