function class:GetLight()
class = classnametable[ "light_directional" ]
if class~=nil then
for model,object in pairs(class.instances) do
return model
end
end
end
I have problem to set a color to my directional light
local light = class:GetLight() -- this function returns first direction light handle
light:SetColor( Vec4(1.0/255.0, 0.0/255.0, 0.0/255.0 ,1.0) )
light handle is OK, because i can rotate light but i can'T set color.
thank you
local posL = Vec3(0,0,0)
local pos = Vec3(0,0,0)
for i=0, 3362 do
posL = surface:GetVertexPosition( i )
pos = TFormPoint( posL, object.model, nil)
local h = class.GetTerrainHeight(pos.x, pos.z, self.model.world)
hm, but It's defined ... IT's Vec3
Why ? when i do aritmetic thing with yy .. it shows different error, that i am doing arithetic on variable yy (usedata)
i tried to make number from it, same problem.
what's wrong ?
DaDonik: texture has 900KB ;-)
It's not about texture actually, but road tool doesn't care about texture, it scretch it as it wants ..
EDIT: ah, i understand, how it works exactly .. i draw a circle on texture texture is repeating very often ....
no no, It still crashes .. no without 0 message I tried example from wiki too.
There is something wrong, because my demos from 2.27 2.28 works absolutely fine with emitters ...
+, you have NVIDIA cards ;-)