This commit is contained in:
NULL511 2024-06-22 18:27:18 -04:00
parent a039b31cf9
commit 3557469fdc
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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