YouGroove Posted May 18, 2014 Share Posted May 18, 2014 I don't find it for Entity in the docs. And what are the values ? are they documented ? From code entity:SetShadwoMode(0) means no shadows , what are the other values ? 1 Stop toying and make games Link to comment Share on other sites More sharing options...
cassius Posted May 18, 2014 Share Posted May 18, 2014 mymodel.model->SetShadowMode(Light::Dynamic); Heres one of them, in c++ amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
YouGroove Posted May 18, 2014 Author Share Posted May 18, 2014 I use Lua only, no autocompletition or Classes access. And there is nothing about shadowMode for Lua on documentation. Stop toying and make games Link to comment Share on other sites More sharing options...
Haydenmango Posted May 19, 2014 Share Posted May 19, 2014 I agree that documentation could be useful for this function as I am not completely sure what values work. Just a guess but maybe 1 would be static and 2 would be dynamic. Not sure how lights work but judging from cassius' post it's probably something similar like self.model:SetShadowMode(Light.Static) or self.model:SetShadowMode(Light.Dynamic). Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
YouGroove Posted May 19, 2014 Author Share Posted May 19, 2014 From what i seen in FPSPlayer.lua you can also combine two values at same time as parameters. So a clear doc on what is possible and examples would be welcome (as this is function of the engine, should be documented) Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted September 13, 2014 Share Posted September 13, 2014 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetshadowmode-r826 Thanks. 1 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