Page 1 of 1

two quick questions on shaders

PostPosted: Tue Aug 27, 2013 12:18
by BadWolf
Hi, First: I'm using minetest 0.4.7 stable on ubuntu, I was looking around trying to find the shader files, I can't find them. On Linux are they in some weird file path or are they not included in the stable release?

Second: When it comes to coding in glsl, are there any good beginner glsl coding guides out there? a quick search on the mine dev wiki for "shader" or "glsl" turned up nothing.

For those who know the language, how hard would it be to take a premade glsl script made for say blender and convert it for minetest? like a script featured here under a CC-BY license http://www.blendswap.com/blends/view/68937

I guess that was 3 questions. My bad

PostPosted: Tue Aug 27, 2013 12:25
by PilzAdam
The shaders are in $path_share/client/shaders/, where $path_share is the Minetest directory in a RUN_IN_PLACE build, and /usr/share/ (or so) in a system wide installation on Linux.

PostPosted: Tue Aug 27, 2013 12:52
by BadWolf
Thanks PilzAdam

PostPosted: Tue Aug 27, 2013 13:00
by BadWolf
this would be sweet to implement: http://www.blendswap.com/blends/view/68857

If it was a straightforward conversion, which from what I see from the code, doesn't look like it would be :(

PostPosted: Tue Aug 27, 2013 14:13
by jojoa1997
If I download that do I need to compile it or something? How would I add it to minetest.

PostPosted: Tue Aug 27, 2013 15:37
by Inocudom
You can ask RealBadAngel about how shaders work, because he is trying to add parallax mapping support to Minetest.

PostPosted: Wed Aug 28, 2013 01:44
by BadWolf
jojoa1997 wrote:If I download that do I need to compile it or something? How would I add it to minetest.


That's my question, but adding it to minetest will not be easy. It'll require coding. You could download that and play the demo in blender