Skip to content

Commit

Permalink
Update with Unity 2018.2
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Jul 29, 2018
1 parent 92343e2 commit 0c56035
Show file tree
Hide file tree
Showing 12 changed files with 4,047 additions and 979 deletions.
4 changes: 3 additions & 1 deletion Assets/Kino/Motion/Shader/Common.cginc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

//
// Kino/Motion - Motion blur effect
//
Expand Down Expand Up @@ -93,7 +95,7 @@ struct v2f_multitex
v2f_multitex vert_Multitex(appdata_full v)
{
v2f_multitex o;
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
o.uv0 = v.texcoord.xy;
o.uv1 = v.texcoord.xy;
#if UNITY_UV_STARTS_AT_TOP
Expand Down
2 changes: 1 addition & 1 deletion Assets/Kino/Obscurance/Obscurance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public enum OcclusionSource {
/// and HDR rendering.
public bool ambientOnly {
get {
return _ambientOnly && targetCamera.hdr &&
return _ambientOnly && targetCamera.allowHDR &&
occlusionSource == OcclusionSource.GBuffer;
}
set { _ambientOnly = value; }
Expand Down
4 changes: 3 additions & 1 deletion Assets/Kino/Obscurance/Shader/Common.cginc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'

// Upgrade NOTE: commented out 'float4x4 _WorldToCamera', a built-in variable
// Upgrade NOTE: replaced '_WorldToCamera' with 'unity_WorldToCamera'

Expand Down Expand Up @@ -201,7 +203,7 @@ v2f vert(appdata_img v)
o.uv = UnityStereoScreenSpaceUVAdjust(v.texcoord, _MainTex_ST);
o.uvAlt = UnityStereoScreenSpaceUVAdjust(uvAlt, _MainTex_ST);
#else
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
o.pos = UnityObjectToClipPos(v.vertex);
o.uv = v.texcoord;
o.uvAlt = uvAlt;
#endif
Expand Down
2 changes: 1 addition & 1 deletion Assets/Kino/Vision/Script/ArrowArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void BuildMesh(int columns, int rows)
_mesh.SetUVs(0, uvs);
_mesh.SetIndices(indices, MeshTopology.Lines, 0);

_mesh.Optimize();
;
_mesh.UploadMeshData(true);

// update the properties
Expand Down
110 changes: 57 additions & 53 deletions Assets/Test/Model/MazeLowMan.fbx.meta

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

Loading

0 comments on commit 0c56035

Please sign in to comment.