Skip to content

Commit

Permalink
Fix lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
riperiperi committed Apr 16, 2022
1 parent 8dec045 commit c3d629b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TSOClient/tso.world/Components/SM64Component.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ private void DrawMario(GraphicsDevice gd, WorldState state, VisualMario visual)
var technique = aEffect.CurrentTechnique;

aEffect.Parameters["Level"].SetValue((level - 1) + 0.0001f);
aEffect.Parameters["AmbientLight"].SetValue(state.OutsideColor.ToVector4());
aEffect.Parameters["AmbientLight"].SetValue(WorldConfig.Current.AdvancedLighting ? new Vector4(1) : state.OutsideColor.ToVector4());
aEffect.Parameters["World"].SetValue(world);
aEffect.Parameters["SkelBindings"].SetValue(newMatrices.ToArray());
aEffect.Parameters["MeshTex"].SetValue(Texture);
Expand Down

0 comments on commit c3d629b

Please sign in to comment.