commit
1cff6bfbbb
@ -51,7 +51,9 @@ void main() {
|
||||
|
||||
mat4 viewmodel = u_view * u_model;
|
||||
a_distance = length(viewmodel * vec4(pos3d, 0.0));
|
||||
#ifndef ADVANCED_RENDER
|
||||
a_fog = calc_fog(length(viewmodel * vec4(pos3d * FOG_POS_SCALE, 0.0)) / 256.0);
|
||||
#endif
|
||||
a_emission = v_normal.w;
|
||||
|
||||
vec4 viewmodelpos = u_view * a_modelpos;
|
||||
|
||||
@ -164,14 +164,14 @@ void WorldRenderer::setupWorldShader(
|
||||
auto inventory = player.getInventory();
|
||||
ItemStack& stack = inventory->getSlot(player.getChosenSlot());
|
||||
auto& item = indices->items.require(stack.getItemId());
|
||||
float multiplier = 0.5f;
|
||||
float multiplier = 0.75f;
|
||||
shader.uniform3f(
|
||||
"u_torchlightColor",
|
||||
item.emission[0] / 15.0f * multiplier,
|
||||
item.emission[1] / 15.0f * multiplier,
|
||||
item.emission[2] / 15.0f * multiplier
|
||||
);
|
||||
shader.uniform1f("u_torchlightDistance", 6.0f);
|
||||
shader.uniform1f("u_torchlightDistance", 8.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -220,6 +220,7 @@ void EnginePaths::cleanup() {
|
||||
io::remove_device(entryPoint);
|
||||
}
|
||||
entryPoints.clear();
|
||||
writeables.clear();
|
||||
}
|
||||
|
||||
void EnginePaths::setEntryPoints(std::vector<PathsRoot> entryPoints) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user