Add start of UVManager code

This commit is contained in:
NullBite 2022-03-24 20:21:09 -04:00
parent 8da3f6267f
commit f170553eba
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -1,8 +1,8 @@
-- vim: set foldmethod=marker ts=4 sw=4 :
--- Initial definitions ---
-- Texture dimensions --
TEXTURE_WIDTH = 128
TEXTURE_HEIGHT = 128
TEXTURE_WIDTH = 256
TEXTURE_HEIGHT = 256
-- utility functions -- {{{
@ -355,6 +355,17 @@ do
end
-- }}}
-- UVManager {{{
do
local mt={}
mt.__index=UVManager
UVManager = {
step=vectors.of{u=0, v=0},
offset=vectors.of{u=0, v=0}
}
end
-- }}}
-- Parts, groups -- {{{
HEAD=model.Head.Head
VANILLA_PARTIAL={}
@ -623,8 +634,11 @@ end
-- }}}
-- Tail animation/render code {{{
-- }}}
-- initialize values -- {{{
function player_init()
old_state={}
@ -691,6 +705,9 @@ function tick()
end
-- }}}
-- Render function {{{
-- }}}
-- Enable commands -- {{{
chat_prefix="$"
chat.setFiguraCommandPrefix(chat_prefix)