Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Natecurt on April 22, 2019, 08:34:08 PM
-
Hi,
I was wondering if anyone knows if there is a way to run realtime boolean subtractions(subtracting from a mesh using another mesh/collider) using playmaker? I'm not familiar with any process and haven't been able to find information on this. If someone could point me in the right direction I'd appreciate it!
Thanks
-
Hi.
This is done with shaders, so it does not require PlayMaker directly.
when i did some googling, these 2 links came at the top of the list several times :
https://assetstore.unity.com/packages/vfx/shaders/screen-space-boolean-subtract-shader-87538
https://github.com/hecomi/UnityScreenSpaceBoolean
The 2nd link is a project which you can test and where you might be able to get some shaders from.
I did not download and test this, but from what i can see in the files is that there are not many scripts used
So it is also mostly done with shaders.
I did notice some animator usage, so you might want to have a look at that.
-
https://github.com/hecomi/UnityScreenSpaceBoolean
The 2nd link is a project which you can test and where you might be able to get some shaders from.
Thanks for the reply!
I have tried implementing this in my project but have a few issues. I am using the lightweight render pipeline currently and I was able to update the materials all fine. However, the Subtractee(Standard) and Subtractor(Standard) shaders are appearing pink. I have attached an error message and the source script below.
Any input on this would be really appreciated as I have limited C# experience.
Thanks
-
The shader will need to be adjusted/rewritten if it wasn't made specifically for the LWRP.