two quick questions on shaders

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

two quick questions on shaders

by BadWolf » Tue Aug 27, 2013 12:18

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
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Tue Aug 27, 2013 12:25

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.
Last edited by PilzAdam on Tue Aug 27, 2013 12:25, edited 1 time in total.
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Tue Aug 27, 2013 12:52

Thanks PilzAdam
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Tue Aug 27, 2013 13:00

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 :(
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Tue Aug 27, 2013 14:13

If I download that do I need to compile it or something? How would I add it to minetest.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Tue Aug 27, 2013 15:37

You can ask RealBadAngel about how shaders work, because he is trying to add parallax mapping support to Minetest.
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Wed Aug 28, 2013 01:44

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
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 2 guests

cron