diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/client/ClientWorld.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/client/ClientWorld.kt index 070f8598..6755b9da 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/client/ClientWorld.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/client/ClientWorld.kt @@ -127,7 +127,7 @@ class ClientWorld( client.pushScissorRect(x, client.viewportHeight - y, x2 - x, y - y2) } - client.lightRenderer.renderHardLight(lightPosition, color, radius = 20f) + client.lightRenderer.renderSoftLight(lightPosition, color, radius = 20f, innerRadius = 1f) if (isScreenspaceRender) { client.popScissorRect() diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/client/render/LightRenderer.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/client/render/LightRenderer.kt index aa3c614d..e4a6c6e2 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/client/render/LightRenderer.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/client/render/LightRenderer.kt @@ -234,7 +234,7 @@ class LightRenderer(val state: GLStateTracker) { state.blendFunc = BlendFunc.ONLY_BLEND_ALPHA state.cull = true - state.cullMode = GL_BACK + state.cullMode = GL_FRONT for (renderer in geometry) { renderer.renderSoftGeometry(this, position, radius, stack, state.programs.softLightGeometry)