shadmar Posted January 15, 2014 Share Posted January 15, 2014 SetVec2 works ok.. How to reproduce : self.shader=Shader:Load("Shaders/Lighting/directionallight.shader") self.shader:SetVec4("ambientlight",1,1,1,1) Also tried : self.shader=Shader:Load("Shaders/Lighting/directionallight.shader") self.shader:SetVec4("ambientlight",Vec4(1,1,1,1)) HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Josh Posted January 18, 2014 Share Posted January 18, 2014 The second call is correct. The first uses invalid syntax. Added the missing Vec4 constructors to the Lua API. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts