a
This commit is contained in:
parent
5458a4a60d
commit
9be1dcadd1
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user