# DefMaterial - A Collection of 2D + 3D Materials

**URL:** <https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679>\
**Category:** The Defoldmine\
**Created:** [October 18, 2017, 10:55am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679 "2017-10-18T10:55:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [October 18, 2017, 10:55am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/1 "2017-10-18T10:55:14Z")

</div>

I’m working on this a bit now, will be updating it frequently for a while. DefFX is going to be modified to be a render target / post processing set only. Some materials have issues due to Defold bugs or something I don’t understand. Have to wait for more 3D features to be improved to prepare more advanced material shaders. Later I’ll make some godshaders which have multiple effects able to toggled and layered. And a PBR shader too. Plus more fun stuff that is going to make 3D games with Defold look good!

[https://github.com/subsoap/defmaterial](https://github.com/subsoap/defmaterial)

 ![2017-10-18 03_41_17-DefMaterial](https://forum-defold-uploads.b-cdn.net/original/2X/a/aebc995e0545056e98309e4cc90d63a9a00a7a00.jpg)

HTML5 demo [DefMaterial 0.0](https://www.pkeod.com/defold/defmaterial/)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [October 18, 2017, 12:37pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/2 "2017-10-18T12:37:46Z")

</div>

Testing matcap style materials

 ![2017-10-18 05_35_44-DefMaterial](https://forum-defold-uploads.b-cdn.net/original/2X/9/93302cfe35f9787dae07dbf339f72d54f0ddd223.jpg)

 ![2017-10-18 05_36_18-DefMaterial](https://forum-defold-uploads.b-cdn.net/original/2X/b/b0d2f01547d3745a222c4eea35661ebed209fc28.jpg)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [October 18, 2017, 12:41pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/3 "2017-10-18T12:41:19Z")

</div>

[https://forum-defold-uploads.b-cdn.net/original/2X/3/313f30ace29d07c31762ad5ca23ec22db89a6db5.mp4](https://forum-defold-uploads.b-cdn.net/original/2X/3/313f30ace29d07c31762ad5ca23ec22db89a6db5.mp4)

---

<div class="post-metadata">

**Author:** ![Johan\_Beck-Noren](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/johan_beck-noren/32/2622_2.png) [@Johan\_Beck-Noren](https://forum.defold.com/u/Johan_Beck-Noren)\
**Post date:** [October 18, 2017, 1:01pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/4 "2017-10-18T13:01:42Z")

</div>

Woah, great work @Pkeod

---

<div class="post-metadata">

**Author:** ![sergey.lerg](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sergey.lerg/32/3970_2.png) [@sergey.lerg](https://forum.defold.com/u/sergey.lerg)\
**Post date:** [October 19, 2017, 1:46am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/5 "2017-10-19T01:46:04Z")

</div>

So cool!

---

<div class="post-metadata">

**Author:** ![Oleg\_The\_Evangelist](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/oleg_the_evangelist/32/1596_2.png) [@Oleg\_The\_Evangelist](https://forum.defold.com/u/Oleg_The_Evangelist)\
**Post date:** [October 19, 2017, 8:19am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/6 "2017-10-19T08:19:16Z")

</div>

coming to Asset Portal soon, I guess? Wanted to SMM it a bit, but I’d rather link to the Asset Portal than to git.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [October 19, 2017, 8:20am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/7 "2017-10-19T08:20:26Z")

</div>

Yes, I’ll put up on Asset Portal within the next few days. Still adding a few more core shaders.

---

<div class="post-metadata">

**Author:** ![zl.kraljevic](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/z/22d042/32.png) [@zl.kraljevic](https://forum.defold.com/u/zl.kraljevic)\
**Post date:** [September 22, 2018, 6:39pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/8 "2018-09-22T18:39:00Z")

</div>

I am amazed. Awesome work on these shaders !  
Somewhere in the forum i think, i saw a tut how to implement shadertoy shader into Defold. Is this something usefull for your shader-workflow ?

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [September 22, 2018, 7:26pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/9 "2018-09-22T19:26:28Z")

</div>

You should follow the shadertoy tutorial just to get the experience. Then look at these shaders and and test them with your models / adapt them to your needs. If vertex positions are off (I think these old shaders are wrong) then compare to the builtin material for models and make fixes as necessary.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [February 11, 2019, 12:28am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/10 "2019-02-11T00:28:50Z")

</div>

I plan to rework this, clean it up, and make the materials a bit easier to use in the future! Plus make some more simple 3D game examples now that 3D is getting more love by engine/editor teams. Have to finish and publish some games made with Defold first. 🕶

---

<div class="post-metadata">

**Author:** ![totebo](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/totebo/32/36087_2.png) [@totebo](https://forum.defold.com/u/totebo)\
**Post date:** [July 15, 2021, 8:49am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/11 "2021-07-15T08:49:45Z")

</div>

Phew, I finally found this again. It needs to go on the assets portal, it’s great!

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [July 15, 2021, 11:26am UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/12 "2021-07-15T11:26:15Z")

</div>

> [@totebo](#):
>
> It needs to go on the assets portal, it’s great!

Or maybe even better be included in Defold builtins?

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [July 15, 2021, 12:30pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/13 "2021-07-15T12:30:27Z")

</div>

> [@britzl](#):
>
> Or maybe even better be included in Defold builtins?

Maybe a fresh/updated project more carefully curated! Could start a new thread/project for submitting useful materials for sprite/model broadly useful enough to be included in builtins.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [July 15, 2021, 7:54pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/14 "2021-07-15T19:54:01Z")

</div>

> [@Pkeod](#):
>
> Maybe a fresh/updated project more carefully curated! Could start a new thread/project for submitting useful materials for sprite/model broadly useful enough to be included in builtins

I haven’t looked into the exact content of DefMaterial but I’m definitely not opposed to opening up builtins to include more things that are useful to our users.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [July 15, 2021, 8:34pm UTC](https://forum.defold.com/t/defmaterial-a-collection-of-2d-3d-materials/12679/15 "2021-07-15T20:34:44Z")

</div>

It’s 4 years old so would need some updating. Some of the materials may be suitable with some modification.
