Skip to content

Commit

Permalink
Fix Saturation and rotation
Browse files Browse the repository at this point in the history
- Fix plane rotation.
- Fix Saturation in maps.
  • Loading branch information
maikramer committed Mar 5, 2019
1 parent 3b46501 commit 189a9b7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
12 changes: 11 additions & 1 deletion Assets/MainScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -3482,7 +3482,7 @@ PrefabInstance:
- target: {fileID: -5986401109027265300, guid: c2cab6d50c049ad48868752e7c23be91,
type: 3}
propertyPath: m_LocalRotation.x
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: -5986401109027265300, guid: c2cab6d50c049ad48868752e7c23be91,
type: 3}
Expand Down Expand Up @@ -3519,6 +3519,16 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: -5986401109027265300, guid: c2cab6d50c049ad48868752e7c23be91,
type: 3}
propertyPath: m_LocalRotation.y
value: -1
objectReference: {fileID: 0}
- target: {fileID: -5986401109027265300, guid: c2cab6d50c049ad48868752e7c23be91,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 180
objectReference: {fileID: 0}
- target: {fileID: 733011826674765905, guid: c2cab6d50c049ad48868752e7c23be91,
type: 3}
propertyPath: m_Materials.Array.data[0]
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/General/ProgramManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ProgramManager : MonoBehaviour
public int DesiredFrameRate;

//Nao remover, alguns shaders dependem disso
private const float GamaCorrection = 1f;
private const float GamaCorrection = 2.2f;

#region Settings

Expand Down
27 changes: 14 additions & 13 deletions Assets/Scripts/Gui/MainGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,20 +404,21 @@ public void Quit()

public void Fullscreen()
{
return;
string text;
if (Screen.fullScreenMode == FullScreenMode.Windowed)
{
text = "Windowed";
SetScreen(ProgramEnums.ScreenMode.FullScreen);
}
else
{
text = "FullScreen";
SetScreen(ProgramEnums.ScreenMode.Windowed);
}

EventSystem.current.currentSelectedGameObject.GetComponentInChildren<TextMeshProUGUI>().text = text;
//Problema com a versao
// string text;
// if (Screen.fullScreenMode == FullScreenMode.Windowed)
// {
// text = "Windowed";
// SetScreen(ProgramEnums.ScreenMode.FullScreen);
// }
// else
// {
// text = "FullScreen";
// SetScreen(ProgramEnums.ScreenMode.Windowed);
// }
//
// EventSystem.current.currentSelectedGameObject.GetComponentInChildren<TextMeshProUGUI>().text = text;
}

public void SetScreen(ProgramEnums.ScreenMode screenMode)
Expand Down

0 comments on commit 189a9b7

Please sign in to comment.