Skip to content

New semantic type for texture transforms#11941

Merged
Jhonnyg merged 18 commits intodevfrom
issue-7045-texture-transform-attribute
Feb 24, 2026
Merged

New semantic type for texture transforms#11941
Jhonnyg merged 18 commits intodevfrom
issue-7045-texture-transform-attribute

Conversation

@Jhonnyg
Copy link
Contributor

@Jhonnyg Jhonnyg commented Feb 23, 2026

We have added a new semantic type texture transform for custom vertex formats that can be used to implement scrolling textures for sprites and particlefx components:

Recording 2026-02-23 135632

Fixes #7045

Comment on lines +102 to +103
// Packed column-major 3x3 (9 floats) for vertex attribute: full 2D affine from unit square to atlas quad.
float m_TextureTransformsPacked[MAX_TEXTURE_COUNT][9];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot use dmVMath::Vector3 since it contains 3x Vector4

@Jhonnyg Jhonnyg requested review from JCash and vlaaad February 24, 2026 10:51
@Jhonnyg Jhonnyg marked this pull request as ready for review February 24, 2026 10:52
Copy link
Contributor

@vlaaad vlaaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The editor changes look good!

@Jhonnyg Jhonnyg merged commit 99b51a7 into dev Feb 24, 2026
32 checks passed
@Jhonnyg Jhonnyg deleted the issue-7045-texture-transform-attribute branch February 24, 2026 17:41
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.

Local UV texture space for sprites in an atlas

3 participants