ParaToxic Posted September 10, 2011 Posted September 10, 2011 Hey guys,i would like to add the terrain_shader to the Framework.Can I load a Shader and set the Shader before RenderFramework() or how can I do that? Thanks for help Quote
Josh Posted September 12, 2011 Posted September 12, 2011 If you want to enable terrain shadows, just call EntityShadowMode() with the terrain entity. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
ParaToxic Posted September 14, 2011 Author Posted September 14, 2011 Thanks, i loaded a Scene (desert highway) but it doesn't work with the Scene.I Think i need the Terrain as a separate Entity but how can i do that? Quote
DaDonik Posted September 14, 2011 Posted September 14, 2011 Use FindChild() on the scene you have loaded. Search for a child named "Terrain" and use EntityShadowMode() on that child. That should work if i remember it correctly. Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI)
macklebee Posted September 15, 2011 Posted September 15, 2011 hmmm i don't believe FindChild() would work... this is how you can do it in lua: require("scripts/linkedlist") local terrain for terrain in iterate(fw.main.world.terrains) do terrain:SetShadowMode(1) end Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.