Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Shader that shows diamond ore locations by Pazaz.
- // This is a modified bash.vsh, The original one was a mob spawner by daxnitro.
- // Becareful when going for diamond ore... Some might be under lava.. Never dig
- // down... Trust me. I'm a doctor.
- #version 120 // This will always get moved to the top of the code in pre-processing.
- attribute vec4 mc_Entity;
- #ifdef _ENABLE_GL_TEXTURE_2D
- centroid varying vec4 texCoord;
- #endif
- varying vec4 vertColor;
- void main() {
- gl_Position = ftransform();
- #ifdef _ENABLE_GL_TEXTURE_2D
- texCoord = gl_MultiTexCoord0;
- #endif
- // The line under this big A** comment is where the magic happens, It works by BLOCK ID's. // 52 Was Mob Spawner, 56 is the Diamond Ore. Change it up if you want, You could have your // whole house glowing red depending on what you made it out of, And what you changed the
- // number below to..
- if (mc_Entity.x == 56.0) {
- // Diamond Ore
- gl_Position.z = 0.0;
- vertColor = vec4(1.0, 0.0, 0.0, 1.0);
- } else {
- vertColor = gl_Color;
- }
- gl_FogFragCoord = gl_Position.z;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement