blueapples Posted July 18, 2016 Share Posted July 18, 2016 Is it possible to adjust the height or scale of vegetation with either code (Lua or C++) or within the editor? For instance, see the following screenshot with the marshgrass asset in front of a building with a door at player height. It's very tall, preventing the default FPSPlayer prefab from seeing over the top of it easily. Is the only way to do this to adjust the model? If so, how can we get varying heights / scale sizes for grass or trees? Quote Link to comment Share on other sites More sharing options...
nick.ace Posted July 18, 2016 Share Posted July 18, 2016 Yes, you can do this in the vertex shader of the vegetation shader. Just scale each vertex position by a certain amount before any transformations. Quote Link to comment Share on other sites More sharing options...
blueapples Posted July 18, 2016 Author Share Posted July 18, 2016 That would have to apply to all vegetation right? I'm not super familiar with how the shaders work yet. Quote Link to comment Share on other sites More sharing options...
nick.ace Posted July 18, 2016 Share Posted July 18, 2016 Yes Quote Link to comment Share on other sites More sharing options...
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.