Skip to content

Commit

Permalink
Fix input and update Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
maikramer committed Aug 9, 2019
1 parent 406e92a commit 9b43da1
Show file tree
Hide file tree
Showing 70 changed files with 464 additions and 1,961 deletions.
11 changes: 5 additions & 6 deletions .idea/.idea.Materialize/.idea/contentModel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions .idea/.idea.Materialize/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.Materialize/.idea/projectSettingsUpdater.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,682 changes: 181 additions & 1,501 deletions .idea/.idea.Materialize/.idea/workspace.xml

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions .idea/.idea.Materialize/riderModule.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/MainScene.unity
Binary file not shown.
Binary file modified Assets/Materials/AO_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Alignment_Material.mat
Binary file not shown.
Binary file modified Assets/Materials/Box_Material.mat
Binary file not shown.
Binary file modified Assets/Materials/DNMS_Physical.mat
Binary file not shown.
Binary file modified Assets/Materials/DNS_Physical.mat
Binary file not shown.
Binary file modified Assets/Materials/Edge_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Edit_Diffuse_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Full_Material.mat
Binary file not shown.
Binary file modified Assets/Materials/Full_Material_Copy.mat
Binary file not shown.
Binary file modified Assets/Materials/Height_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Inverse_Cube.mat
Binary file not shown.
Binary file modified Assets/Materials/Inverse_Cube_Probe.mat
Binary file not shown.
Binary file modified Assets/Materials/LightDot.mat
Binary file not shown.
Binary file modified Assets/Materials/Metallic_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Normal_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Rough_Spec_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Sample_Material.mat
Binary file not shown.
Binary file modified Assets/Materials/Skybox.mat
Binary file not shown.
Binary file modified Assets/Materials/Smoothness_Preview.mat
Binary file not shown.
Binary file modified Assets/Materials/Test_Material.mat
Binary file not shown.
Binary file modified Assets/Models/Materials/box_material.mat
Binary file not shown.
Binary file modified Assets/Models/Materials/cube_material.mat
Binary file not shown.
Binary file modified Assets/Models/Materials/cylinder_material.mat
Binary file not shown.
Binary file modified Assets/Models/Materials/sphere_material.mat
Binary file not shown.
Binary file modified Assets/OBJ-IO/Examples/Meshes/Materials/Teapot001Mat.mat
Binary file not shown.
Binary file modified Assets/OBJ-IO/Examples/Scenes/Example.unity
Binary file not shown.
7 changes: 4 additions & 3 deletions Assets/Plugins/ClipboardHelper.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Assets/Plugins/Editor/JetBrains.meta

This file was deleted.

Binary file not shown.

This file was deleted.

11 changes: 4 additions & 7 deletions Assets/Scripts/AlignmentGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,15 @@ public class AlignmentGui : MonoBehaviour
private int _grabbedPoint;

private float _lensDistort;
private string _lensDistortText = "0.0";

private RenderTexture _lensMap;

private MainGui _mainGui;
private RenderTexture _perspectiveMap;

private float _perspectiveX;
private string _perspectiveXText = "0.0";

private float _perspectiveY;
private string _perspectiveYText = "0.0";
private Vector2 _pointBl = new Vector2(0.0f, 0.0f);
private Vector2 _pointBr = new Vector2(1.0f, 0.0f);

Expand Down Expand Up @@ -204,7 +201,7 @@ private void Update()
{
SelectClosestPoint();
DragPoint();

ProcessMap(_textureToAlign);

var aspect = _textureToAlign.width / (float) _textureToAlign.height;
Expand Down Expand Up @@ -321,15 +318,15 @@ private void DoMyWindow(int windowId)


if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Lens Distort Correction", _lensDistort,
_lensDistortText, out _lensDistort, out _lensDistortText, -1.0f, 1.0f)) _doStuff = true;
out _lensDistort, -1.0f, 1.0f)) _doStuff = true;
offsetY += 40;

if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Perspective Correction X", _perspectiveX,
_perspectiveXText, out _perspectiveX, out _perspectiveXText, -5.0f, 5.0f)) _doStuff = true;
out _perspectiveX, -5.0f, 5.0f)) _doStuff = true;
offsetY += 40;

if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Perspective Correction Y", _perspectiveY,
_perspectiveYText, out _perspectiveY, out _perspectiveYText, -5.0f, 5.0f)) _doStuff = true;
out _perspectiveY, -5.0f, 5.0f)) _doStuff = true;
offsetY += 50;

if (GUI.Button(new Rect(offsetX, offsetY, 130, 30), "Reset Points"))
Expand Down
19 changes: 9 additions & 10 deletions Assets/Scripts/AoFromNormalGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,25 +137,24 @@ private void DoMyWindow(int windowId)
const int offsetX = 10;
var offsetY = 30;

if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO pixel Spread", _aos.Spread, _aos.SpreadText,
out _aos.Spread, out _aos.SpreadText, 10.0f, 100.0f)) _doStuff = true;
if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO pixel Spread", _aos.Spread,
out _aos.Spread, 10.0f, 100.0f)) _doStuff = true;
offsetY += 40;

if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pixel Depth", _aos.Depth, _aos.DepthText,
out _aos.Depth, out _aos.DepthText, 0.0f, 256.0f)) _doStuff = true;
if (GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pixel Depth", _aos.Depth,
out _aos.Depth, 0.0f, 256.0f)) _doStuff = true;
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Blend Normal AO and Depth AO", _aos.Blend,
_aos.BlendText,
out _aos.Blend, out _aos.BlendText, 0.0f, 1.0f);
out _aos.Blend, 0.0f, 1.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO Power", _aos.FinalContrast, _aos.FinalContrastText,
out _aos.FinalContrast, out _aos.FinalContrastText, 0.1f, 10.0f);
GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO Power", _aos.FinalContrast,
out _aos.FinalContrast, 0.1f, 10.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO Bias", _aos.FinalBias, _aos.FinalBiasText,
out _aos.FinalBias, out _aos.FinalBiasText, -1.0f, 1.0f);
GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "AO Bias", _aos.FinalBias,
out _aos.FinalBias, -1.0f, 1.0f);
offsetY += 50;

GUI.enabled = !Busy;
Expand Down
24 changes: 9 additions & 15 deletions Assets/Scripts/EdgeFromNormalGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void DoMyWindow(int windowId)
var offsetY = 30;

_doStuff = GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pre Contrast", _settings.Blur0Contrast,
_settings.Blur0ContrastText, out _settings.Blur0Contrast, out _settings.Blur0ContrastText, 0.0f, 5.0f);
out _settings.Blur0Contrast, 0.0f, 5.0f);
offsetY += 50;

GUI.Label(new Rect(offsetX, offsetY, 250, 30), "Frequency Equalizer");
Expand Down Expand Up @@ -281,33 +281,27 @@ private void DoMyWindow(int windowId)
offsetY += 120;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Edge Amount", _settings.EdgeAmount,
_settings.EdgeAmountText,
out _settings.EdgeAmount, out _settings.EdgeAmountText, 0.0f, 1.0f);
out _settings.EdgeAmount, 0.0f, 1.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Crevice Amount", _settings.CreviceAmount,
_settings.CreviceAmountText,
out _settings.CreviceAmount, out _settings.CreviceAmountText, 0.0f, 1.0f);
out _settings.CreviceAmount, 0.0f, 1.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pinch", _settings.Pinch, _settings.PinchText,
out _settings.Pinch,
out _settings.PinchText, 0.1f, 10.0f);
GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pinch", _settings.Pinch, out _settings.Pinch,
0.1f, 10.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pillow", _settings.Pillow, _settings.PillowText,
out _settings.Pillow,
out _settings.PillowText, 0.1f, 5.0f);
GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Pillow", _settings.Pillow, out _settings.Pillow,
0.1f, 5.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Final Contrast", _settings.FinalContrast,
_settings.FinalContrastText,
out _settings.FinalContrast, out _settings.FinalContrastText, 0.1f, 30.0f);
out _settings.FinalContrast, 0.1f, 30.0f);
offsetY += 40;

GuiHelper.Slider(new Rect(offsetX, offsetY, 280, 50), "Final Bias", _settings.FinalBias,
_settings.FinalBiasText,
out _settings.FinalBias, out _settings.FinalBiasText, -1.0f, 1.0f);
out _settings.FinalBias, -1.0f, 1.0f);
offsetY += 50;

if (GUI.Button(new Rect(offsetX + 10, offsetY, 130, 30), "Reset to Defaults"))
Expand Down
Loading

0 comments on commit 9b43da1

Please sign in to comment.