master-j / decalco Goto Github PK
View Code? Open in Web Editor NEWShader based decal solution for the Godot game engine
License: MIT License
Shader based decal solution for the Godot game engine
License: MIT License
Edit : After further investigation, it turns out that the decal's material was not properly configured ; specularity defaulting to 1 caused this issue.
In the example below, a decal is placed on a wall. A narrow
spotlight is emitting from near the camera, and at a certain distance and angle, the decal lights up even though the spotlight is not aimed towards it.
Here is a picture of the decal placed in the world (local space gizmo)
And the properties of the spotlight
This might be happening because of a poor understanding of decalco or the engine, but I'm posting this in case it isn't (and haven't found another place do discuss this issue).
Hope I'm not bothering !
Thank you.
Dear,
Is there a way to implement "collision layers" in your solution? So the Decal would work on certain object but not other
Scenario: an enemy being shot, so he loses bloods (Decal Splatter on the floor). Same enemy walks on the blood splatter, it would reflect on him!
Exp: (I tried my best to illustrate the problem in the picture below... I hope you can see the blood supposed in the floor is shown on the enemy body...)
So the obvious solution, is to have the z axis of the decal as small as possible. But, it's not applicable in my case because it's splatter over curved and messy meshes... The best is to have a sort of mechanism that will tell the Decal on which object/node it would reflect...
Thanks a lot for your answer, and thanks a lot for such great feature
Regards
Riad
Thank you for creating this addon, it is pretty good. I can already add some cool blood decals into my game but there are couple of things that bother me.
The first issue that I found is that duplicating a decal doesn't seem to currently work since the duplicate decal is empty. It would make things easier, if I could just duplicate decals without any issues :D
The second issue is (if I understood correctly) that custom shaders aren't currently supported. It would be really cool if this addon would take advantage of visual shaders since that can open up doors for more complex looking decals.
Merry Christmas and happy New year !!
rolling sphere will cast it's decal on ground.
is there any fix for this? thanks.
I was wondering,
does this addon actually change the texture of the cube it's acting on? If so, could I save this texture with the decals embedded on it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.