About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
World editor set shader
Author Message
RedcrowProd Offline
Bronze Supporter

Post: #1
World editor set shader
Hi there !

I am trying to achieve a similar look to the world editor brush shader, i got it all working up to the setshader of the area, then i got a bit confused with how the code is setup in source, the area create a heightmap2 that holds the meshes and call setshader on them then call scheduleblend.

How could i go about making my hm meshes from world.area.data have the shader as well ?

Welcome any advice on where to look at and if i have missed something smile thanks
(This post was last modified: 08-10-2020 03:30 PM by RedcrowProd.)
08-08-2020 06:03 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: World editor set shader
Yes you have to extend blend object class, it was designed for this purpose.
08-08-2020 05:24 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Bronze Supporter

Post: #3
RE: World editor set shader
awesome yes i got it working smile

i misunderstood the customSetShader call, and was naming my func setShader() like on the engine, but actually i had to override the func smile

thanks
(This post was last modified: 08-09-2020 03:21 PM by RedcrowProd.)
08-09-2020 07:16 AM
Find all posts by this user Quote this message in a reply
Post Reply