Skip to content

Commit 5285820

Browse files
committed
lights: Disable intensity due to black render.
1 parent 66a7bd0 commit 5285820

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Runtime/LightConverter.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public void UpdateLight(Light light, LightData data, bool isInsert)
3535
light.transform.localPosition = new Vector3(0f, 0f, 25f);
3636

3737
// TODO: vpe specific shadow settings
38-
light.shadows = LightShadows.Hard;
38+
light.shadows = LightShadows.None;
3939
light.shadowBias = 0f;
40-
light.shadowNearPlane = 0f;
40+
light.shadowNearPlane = 0.001f;
4141
}
4242

4343
public void SetColor(Light light, Color color)
@@ -47,15 +47,16 @@ public void SetColor(Light light, Color color)
4747

4848
public void SetShadow(Light light, bool enabled, bool isDynamic, float nearPlane = 0.01f)
4949
{
50-
light.shadows = enabled ? LightShadows.Soft : LightShadows.None;
51-
light.shadowNearPlane = nearPlane;
50+
// light.shadows = enabled ? LightShadows.Soft : LightShadows.None;
51+
// light.shadowNearPlane = nearPlane;
5252
}
5353

5454
public void SetIntensity(Light light, float intensityLumen)
5555
{
56-
light.intensity = intensityLumen;
56+
//light.intensity = intensityLumen / 1000f;
5757
}
5858

59+
5960
public void SetTemperature(Light light, float temperature)
6061
{
6162
// todo

0 commit comments

Comments
 (0)