Fixed block sides lights
This commit is contained in:
parent
8161d84e36
commit
6b5e8406b3
@ -107,8 +107,8 @@ void BlocksRenderer::cube(vec3 coord, vec3 size, const UVRegion texfaces[6]) {
|
||||
face(coord + vec3(size.x, 0, 0), size.z, size.y, vec3(0, 0, -1), vec3(0, 1, 0), texfaces[5], lights);
|
||||
}
|
||||
|
||||
constexpr vec4 do_tint(float value) {
|
||||
return vec4(value, value, value, 1.0f);
|
||||
inline vec4 do_tint(float value) {
|
||||
return vec4(value);
|
||||
}
|
||||
|
||||
void BlocksRenderer::blockCube(int x, int y, int z, vec3 size, const UVRegion texfaces[6], ubyte group) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user