This commit is contained in:
DBotThePony 2022-09-16 13:28:15 +07:00
parent 5458a4a60d
commit 9be1dcadd1
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 2 additions and 2 deletions

View File

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

View File

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