diff --git a/shaders/dimensions/all_solid.fsh b/shaders/dimensions/all_solid.fsh index a86d147..fe2bccf 100644 --- a/shaders/dimensions/all_solid.fsh +++ b/shaders/dimensions/all_solid.fsh @@ -83,7 +83,7 @@ uniform vec4 entityColor; // in vec3 velocity; -flat varying float blockID; +flat varying int blockID; flat varying float SSSAMOUNT; flat varying float EMISSIVE; diff --git a/shaders/dimensions/all_solid.vsh b/shaders/dimensions/all_solid.vsh index a95fc4a..7ecfb5d 100644 --- a/shaders/dimensions/all_solid.vsh +++ b/shaders/dimensions/all_solid.vsh @@ -55,7 +55,7 @@ attribute vec4 mc_midTexCoord; uniform int blockEntityId; uniform int entityId; -flat varying float blockID; +flat varying int blockID; uniform int heldItemId; uniform int heldItemId2; @@ -229,7 +229,7 @@ void main() { normalMat = vec4(normalize(gl_NormalMatrix * gl_Normal), 1.0); FlatNormals = normalMat.xyz; - blockID = mc_Entity.x; + blockID = int(mc_Entity.x + 0.5); if (blockID == BLOCK_GROUND_WAVING_VERTICAL || blockID == BLOCK_GRASS_SHORT || blockID == BLOCK_GRASS_TALL_LOWER || blockID == BLOCK_GRASS_TALL_UPPER ) normalMat.a = 0.60; diff --git a/shaders/dimensions/composite2.fsh b/shaders/dimensions/composite2.fsh index c6ba774..ff8c889 100644 --- a/shaders/dimensions/composite2.fsh +++ b/shaders/dimensions/composite2.fsh @@ -74,7 +74,7 @@ float linearizeDepthFast(const in float depth, const in float near, const in flo flat varying float exposure; - # WARN: thought extensions needed to be at beginning? + // WARN: thought extensions needed to be at beginning? #extension GL_ARB_shader_image_load_store: enable #extension GL_ARB_shading_language_packing: enable