Verse Library verse

01 Fragment

Conceptual code for offsetting texture UVs over time to create continuous flowing or animated surface effects.

verse-library/moving-uvs/01-fragment.verse

// This is a simplified view of how the engine thinks
// It is not actual Verse code, but a concept

Texture = GetTexture()
UVs = GetUVs()

// The Panner adds movement to the UVs
MovingUVs = UVs + (Speed * Time)

// The texture uses the moving UVs
DrawTexture(Texture, MovingUVs)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in