About Store Forum Documentation Contact



Post Reply 
Grass shader offset question
Author Message
RedcrowProd Offline
Member

Post: #1
Grass shader offset question
Hello,
I am trying to archieve some nice look when i have my map and have a storm hitting !

Now my question is i want to make it really windy and move all together at the same time in the same direction.

How can i achieve that ? The bendgrass function is in the shader and cant be easily accessed ? Is there a way someone can think without being too much work/ rebuild the engine ?

Thanks as always smile
07-11-2020 06:30 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Grass shader offset question
I think the best way would be to customize the shader / make your own version - not easy.
Another option is to just rotate the entire matrix that you pass for mesh draw (but that rotates the grass mesh fully), easy but may not look as good as it can.
07-12-2020 04:16 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #3
RE: Grass shader offset question
okay thanks, will think about it, obviously i dont want to spend 10 hours into that right now smile
07-12-2020 06:19 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #4
RE: Grass shader offset question
Me again !

Bumping this post because i do now have 10 hours to spend on this smile

i am trying to learn how to slowly modify the engine shaders, and i want to start with the grass one.
is there any tip of where i should look at and maybe some documentation ?

Thanks!
(This post was last modified: 12-02-2021 01:07 AM by RedcrowProd.)
12-02-2021 01:06 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Grass shader offset question
12-02-2021 05:20 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #6
RE: Grass shader offset question
thanks for the link ! exactly what i was looking for
12-02-2021 05:15 PM
Find all posts by this user Quote this message in a reply
Post Reply