mirror of
https://github.com/Relintai/terraman.git
synced 2025-05-01 22:07:59 +02:00
Fix indexing.
This commit is contained in:
parent
025c902b44
commit
e44caf50ea
@ -302,7 +302,7 @@ void TerraMesherBlocky::_add_chunk(Ref<TerraChunk> p_chunk) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
//z + 1
|
//z + 1
|
||||||
if (neighbours[4] == 0) {
|
if (neighbours[2] == 0) {
|
||||||
if (use_lighting) {
|
if (use_lighting) {
|
||||||
light = Color(channel_color_r[indexzp] / 255.0,
|
light = Color(channel_color_r[indexzp] / 255.0,
|
||||||
channel_color_g[indexzp] / 255.0,
|
channel_color_g[indexzp] / 255.0,
|
||||||
@ -362,7 +362,7 @@ void TerraMesherBlocky::_add_chunk(Ref<TerraChunk> p_chunk) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//z - 1
|
//z - 1
|
||||||
if (neighbours[5] == 0) {
|
if (neighbours[3] == 0) {
|
||||||
if (use_lighting) {
|
if (use_lighting) {
|
||||||
light = Color(channel_color_r[indexzn] / 255.0,
|
light = Color(channel_color_r[indexzn] / 255.0,
|
||||||
channel_color_g[indexzn] / 255.0,
|
channel_color_g[indexzn] / 255.0,
|
||||||
|
@ -350,7 +350,7 @@ void TerraMesherLiquidBlocky::_add_chunk(Ref<TerraChunk> p_chunk) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
//z + 1
|
//z + 1
|
||||||
if (neighbours[4] == 0) {
|
if (neighbours[2] == 0) {
|
||||||
if (use_lighting) {
|
if (use_lighting) {
|
||||||
light = Color(channel_color_r[indexzp] / 255.0,
|
light = Color(channel_color_r[indexzp] / 255.0,
|
||||||
channel_color_g[indexzp] / 255.0,
|
channel_color_g[indexzp] / 255.0,
|
||||||
@ -410,7 +410,7 @@ void TerraMesherLiquidBlocky::_add_chunk(Ref<TerraChunk> p_chunk) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//z - 1
|
//z - 1
|
||||||
if (neighbours[5] == 0) {
|
if (neighbours[3] == 0) {
|
||||||
if (use_lighting) {
|
if (use_lighting) {
|
||||||
light = Color(channel_color_r[indexzn] / 255.0,
|
light = Color(channel_color_r[indexzn] / 255.0,
|
||||||
channel_color_g[indexzn] / 255.0,
|
channel_color_g[indexzn] / 255.0,
|
||||||
|
Loading…
Reference in New Issue
Block a user