Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial VR support #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .sbproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"MaxPlayers": 8,
"GameCategory": "Sports",
"ControlModes": {
"Keyboard": true
"Keyboard": true,
"VR": true
},
"CsProjName": "",
"Summary": "\u26F3 Play competitive multiplayer Minigolf with your friends.",
Expand Down
47 changes: 47 additions & 0 deletions Assets/models/gameplay/putter/materials/putter.vmat
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// THIS FILE IS AUTO-GENERATED

Layer0
{
shader "shaders/complex.shader"

//---- Color ----
F_TINT_MASK 1

//---- PBR ----
F_METALNESS_TEXTURE 1
F_SPECULAR 1

//---- Ambient Occlusion ----
g_flAmbientOcclusionDirectDiffuse "0.000"
g_flAmbientOcclusionDirectSpecular "0.000"
TextureAmbientOcclusion "models/gameplay/putter/materials/putter_ao.png"

//---- Color ----
g_flModelTintAmount "1.000"
g_vColorTint "[1.000000 1.000000 1.000000 0.000000]"
TextureColor "models/gameplay/putter/materials/putter_color.png"
TextureTintMask "models/gameplay/putter/materials/putter_mask.png"

//---- Fade ----
g_flFadeExponent "1.000"

//---- Fog ----
g_bFogEnabled "1"

//---- Metalness ----
TextureMetalness "models/gameplay/putter/materials/putter_metal.png"

//---- Normal ----
TextureNormal "models/gameplay/putter/materials/putter_normal.png"

//---- Roughness ----
g_flRoughnessScaleFactor "1.000"
TextureRoughness "models/gameplay/putter/materials/putter_rough.png"

//---- Texture Coordinates ----
g_nScaleTexCoordUByModelScaleAxis "0"
g_nScaleTexCoordVByModelScaleAxis "0"
g_vTexCoordOffset "[0.000 0.000]"
g_vTexCoordScale "[1.000 1.000]"
g_vTexCoordScrollSpeed "[0.000 0.000]"
}
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_AO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Emissive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Height.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Metal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Opacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_Rough.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/materials/putter_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
255 changes: 255 additions & 0 deletions Assets/models/gameplay/putter/minigolf_putter.vanmgrph
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:animgraph2:version{0f7898b8-5471-45c4-9867-cd9c46bcfdb5} -->
{
_class = "CAnimationGraph"
m_nodeManager =
{
_class = "CAnimNodeManager"
m_nodes =
[
{
key =
{
m_id = 6598798
}
value =
{
_class = "CRootAnimNode"
m_sName = "Unnamed"
m_vecPosition = [ 16.0, -16.0 ]
m_nNodeID =
{
m_id = 6598798
}
m_sNote = ""
m_inputConnection =
{
m_nodeID =
{
m_id = 1075778687
}
m_outputID =
{
m_id = 4294967295
}
}
}
},
{
key =
{
m_id = 1075778687
}
value =
{
_class = "CBlendAnimNode"
m_sName = "PutterLength"
m_vecPosition = [ -263.0, -16.0 ]
m_nNodeID =
{
m_id = 1075778687
}
m_sNote = ""
m_children =
[
{
m_inputConnection =
{
m_nodeID =
{
m_id = 1233287384
}
m_outputID =
{
m_id = 4294967295
}
}
m_name = "60"
m_blendValue = 60.0
},
{
m_inputConnection =
{
m_nodeID =
{
m_id = 2066078636
}
m_outputID =
{
m_id = 4294967295
}
}
m_name = "72.5"
m_blendValue = 72.5
},
{
m_inputConnection =
{
m_nodeID =
{
m_id = 1100900612
}
m_outputID =
{
m_id = 4294967295
}
}
m_name = "90"
m_blendValue = 90.0
},
]
m_blendValueSource = "Parameter"
m_param =
{
m_id = 1076241868
}
m_blendKeyType = "BlendKey_UserValue"
m_bLockBlendOnReset = false
m_bSyncCycles = true
m_bLoop = true
m_bLockWhenWaning = true
m_damping =
{
_class = "CAnimInputDamping"
m_speedFunction = "NoDamping"
m_fSpeedScale = 1.0
m_fMinSpeed = 10.0
m_fMaxTension = 1000.0
m_fTension = 100.0
m_fDamping = 5.0
}
}
},
{
key =
{
m_id = 1100900612
}
value =
{
_class = "CSingleFrameAnimNode"
m_sName = "Unnamed"
m_vecPosition = [ -560.0, 48.0 ]
m_nNodeID =
{
m_id = 1100900612
}
m_sNote = ""
m_sequenceName = "putter_long"
m_nFrameIndex = 0
m_tagSpans = [ ]
}
},
{
key =
{
m_id = 1233287384
}
value =
{
_class = "CSingleFrameAnimNode"
m_sName = "Unnamed"
m_vecPosition = [ -560.0, -48.0 ]
m_nNodeID =
{
m_id = 1233287384
}
m_sNote = ""
m_sequenceName = "putter_short"
m_nFrameIndex = 0
m_tagSpans = [ ]
}
},
{
key =
{
m_id = 2066078636
}
value =
{
_class = "CSingleFrameAnimNode"
m_sName = "Unnamed"
m_vecPosition = [ -560.0, 0.0 ]
m_nNodeID =
{
m_id = 2066078636
}
m_sNote = ""
m_sequenceName = "putter_default"
m_nFrameIndex = 0
m_tagSpans = [ ]
}
},
]
}
m_pParameterList =
{
_class = "CAnimParameterList"
m_Parameters =
[
{
_class = "CFloatAnimParameter"
m_name = "putter_length"
m_id =
{
m_id = 1076241868
}
m_previewButton = "ANIMPARAM_BUTTON_NONE"
m_bUseMostRecentValue = false
m_bAutoReset = false
m_fDefaultValue = 72.5
m_fMinValue = 60.0
m_fMaxValue = 90.0
},
]
}
m_pTagManager =
{
_class = "CAnimTagManager"
m_tags = [ ]
}
m_pMovementManager =
{
_class = "CAnimMovementManager"
m_MotorList =
{
_class = "CAnimMotorList"
m_motors = [ ]
}
m_MovementSettings =
{
_class = "CAnimMovementSettings"
m_bShouldCalculateSlope = false
}
}
m_pSettingsManager =
{
_class = "CAnimGraphSettingsManager"
m_settingsGroups =
[
{
_class = "CAnimGraphGeneralSettings"
m_iGridSnap = 16
},
{
_class = "CAnimGraphNetworkSettings"
},
]
}
m_pActivityValuesList =
{
_class = "CActivityValueList"
m_activities = [ ]
}
m_previewModels =
[
"models/gameplay/putter/putter.vmdl",
]
m_boneMergeModels = [ ]
m_cameraSettings =
{
m_flFov = 60.0
m_sLockBoneName = "root"
m_bLockCamera = false
m_bViewModelCamera = false
}
}
3 changes: 3 additions & 0 deletions Assets/models/gameplay/putter/putter.fbx
Git LFS file not shown
Loading