Script.a=0
Script.mtl=NULL
Script.srf=NULL
function Script:Start()
self.srf = self.entity:GetSurface(0);
self.mtl=self.srf:GetMaterial()
end
function Script:UpdateWorld()
self.mtl:SetColor(255,255,255,self.a)
self.a=self.a+0.001
end
That's the lua skydome code I have so far.
It goes from transparent to solid, but theres no texture, just color. If I remove "SetClolor()" the texture is back to place. Any ideas?