Anyone working on shader modding in the latest beta? I have been messing around and created a few awful ones, but I'm curious to see what others have done as well. Some of the better random ones I've done are shown below.
Really trippy world:
Random color mixing:
I also have a no-fog shader mod as well, which is in all of those screen shots.
Rollback Post to RevisionRollBack
Did you know I make music? Just click my logo to listen to my awesome Electronic beats!
Do you know the color of water? (for waving only the water and not everything)
I don't have to know the color of water to make only it wave. In the renderchunk vertex shader, there is a definition called NEAR_WATER.
In the main method, I added this:
color = fancyWater(POSITION.xyz, COLOR);
gl_Position.y += sin(gl_Position.y * 2.0)/4.0; // add waves to y position
gl_Position.x += cos(gl_Position.x * 2.0)/4.0; // add waves to x position
//Do not add waves to the z position!
color = COLOR;
color.a = (gl_Position.z) / FAR_CHUNKS_DISTANCE + 0.5;
color = COLOR;
Nice, but how is it possible?!
"#ifdef NEAR_WATER" is for the preprocessor at compile time, so is mcpe recompiling the shaders at every vertex?
Remember that these are GLSL shaders. GLSL is OpenGL's own programming language that runs on the GPU, and is similar to C, but with a quite few differences. MCPE doesn't have to do anything other than send the text file containing the shader to the GPU. The GPU compiles the shader, runs the shader, and does everything else on its own.
*noob alert* Where is the main method?
Will links be availible?
I may provide links to some shaders, but not many until 0.10.0 is officially released. Tommaso might change the shaders from now until the final release (for example, he recently said he was going to use mediump floats instead of lowp), so I'm only experimenting for now. Once 0.10.0 is released and the shaders are final, I'll start releasing better and bigger shader packs/themes.
Also, if you look at a fragment/vertex shader, the main method is the line that says:
// This is inside the main method
It's the one that I highlighted/put a dot next to in this picture:
Firstly I have a bad English or kind of, but I try to ask if you can make the outline shadows in blocks like chocapics, and crystallized color of water, that would be awesome and also that about the lightning in glowstone, plz reply, bye and thanks.