Skip to content

Commit

Permalink
Small tweaks to Peeler
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Dec 28, 2018
1 parent 3322754 commit 77e8d34
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 2 deletions.
87 changes: 86 additions & 1 deletion Assets/VideolabTest/Peeler.unity
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_IndirectSpecularColor: {r: 0.44657868, g: 0.49641263, b: 0.5748171, a: 1}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3066,6 +3066,90 @@ MonoBehaviour:
_wiringNodePosition: {x: 0, y: 108}
_target: {fileID: 933376318}
_propertyName: _Group2
--- !u!1 &1566029837
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1566029838}
- component: {fileID: 1566029839}
m_Layer: 0
m_Name: Mouse Button Input
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1566029838
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1566029837}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2089193027}
m_RootOrder: 32
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1566029839
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1566029837}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b633610a75d4dc748bae1f1d82e8d9dc, type: 3}
m_Name:
m_EditorClassIdentifier:
_wiringNodePosition: {x: -384, y: -192}
_buttonIndex: 0
_offValue: 0
_onValue: 1
_interpolator:
_interpolationType: 2
_interpolationSpeed: 10
_buttonDownEvent:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 373774287}
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName:
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 37878058}
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName:
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_TypeName: Klak.Wiring.NodeBase+VoidEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_buttonUpEvent:
m_PersistentCalls:
m_Calls: []
m_TypeName: Klak.Wiring.NodeBase+VoidEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_valueEvent:
m_PersistentCalls:
m_Calls: []
m_TypeName: Klak.Wiring.NodeBase+FloatEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!1 &1575595792
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -4501,6 +4585,7 @@ Transform:
- {fileID: 1631690798}
- {fileID: 83171843}
- {fileID: 227172779}
- {fileID: 1566029838}
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3 changes: 2 additions & 1 deletion Assets/VideolabTest/Peeler/Peeler.shader
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ Shader "VideolabTest/Peeler"
half vface : VFACE
) : SV_Target
{
#ifdef SHADER_API_METAL
// Workaround for issue #926424
#if UNITY_VERSION < 570 && defined(SHADER_API_MOBILE)
bool flip = vface > 0;
#else
bool flip = vface < 0;
Expand Down

0 comments on commit 77e8d34

Please sign in to comment.