Revert "Fallback handled. Yes, I tested this."

This reverts commit 986d510a88.
This commit is contained in:
Jason Felds
2013-07-18 17:43:19 -04:00
parent 881f175e6c
commit 6120a8a5e4
29 changed files with 793 additions and 1314 deletions
@@ -1,28 +1,17 @@
local t = Def.ActorFrame{
LoadActor("noise")..{
Name="Noise";
InitCommand=function(self)
self:Center();
self:texturewrapping(true);
self:SetTextureFiltering(false);
self:zoom(2);
self:diffusealpha(0);
end;
OnCommand=function(self)
self:linear(1);
self:diffusealpha(1);
end;
};
};
local function Update(self)
local c = self:GetChild("Noise");
local x = math.random();
local y = math.random();
c:customtexturerect(0+x,0+y,2+x,2+y);
end;
t.InitCommand = function(self)
self:SetUpdateFunction(Update);
end;
return t;
local t = Def.ActorFrame{
LoadActor("noise")..{
Name="Noise";
InitCommand=cmd(Center;texturewrapping,true;SetTextureFiltering,false;zoom,2;diffusealpha,0;);
OnCommand=cmd(linear,1;diffusealpha,1);
};
};
local function Update(self)
local c = self:GetChild("Noise");
local x = math.random();
local y = math.random();
c:customtexturerect(0+x,0+y,2+x,2+y);
end;
t.InitCommand = cmd(SetUpdateFunction,Update);
return t;