Page 1 of 1

enable_shaders new_style_water

PostPosted: Wed Dec 12, 2012 16:33
by 0gb.us
I like the new shaders, but the lower water level they cause make thin water and lava invisible, as it makes the liquid surface render below the surface of the stone. So I set enable_shaders to true, and new_style_water to false

Doing that turns every node on the map bright red, and turns all nodes (but not other objects) in you inventory some sort of yellowish tint. I'd post a screenshot, but I have nowhere to upload it right now.

PostPosted: Wed Dec 12, 2012 16:35
by PilzAdam
http://www.zimg.eu/ for screenshots.

PostPosted: Thu Dec 13, 2012 01:43
by 0gb.us
A couple minutes after I posted, I found what I had done wrong, but I couldn't get back into the forum to delete this topic. Maybe it was down? Just for fun though, this is what I was looking at.

Image

enable_shaders needs to be set to "2" to function properly, at least on my computer. I had it set to "1", and tried setting it to "true" as well.

It seems that new_style_water isn't lowering the water level though, the shaders are, so the only way to raise the water level back up is to disable them. But that makes it harder to see the edges of the blocks. Oh, well.

PostPosted: Thu Dec 13, 2012 12:55
by Calinou
GLSL shaders only work with OpenGL rendering, make sure you use "opengl" as video_driver.
There is currently no support for HLSL shaders, which are used by Direct3D.

Also, your graphics card needs to support GLSL shaders (if the window name shows "OpenGL 2.0" or better, it does).

PostPosted: Thu Dec 13, 2012 16:40
by PilzAdam
enable_shaders in minetest.conf currently has only 2 states, "0" and "2".