Animated VTF textures not implemented #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Source VTF textures can contain multiple frames for animation (flag
TEXTUREFLAGS_ANIMATEDor simply multiple frames in the VTF header). We currently decode only frame 0 and never update, so animated textures appear static.Visible in
shader_test_01— several cubes use animated materials (energy effects, scrolling textures) that should be visually active.What's needed
vtf.js): Already parses the frame count from the VTF header but only decodes frame 0. Need to decode all frames and store them.AnimatedTextureVarproxies with$animatedtexturevar,$animatedtextureframenumvar, and$animatedtextureframerate.Additional considerations
$texturescrollvar) rather than frame animation — different mechanism, similar visual effect.