This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Google | |
PointerAlignment: Left | |
IndentWidth: 4 | |
# ColumnLimit: 200 | |
BinPackArguments: true | |
BinPackParameters: true | |
AlignAfterOpenBracket: Align | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortIfStatementsOnASingleLine: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ***** BEGIN GPL LICENSE BLOCK ***** | |
# | |
# Copyright © 2019 Jean Ayer(vrav) | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.hlsl text | |
*.glsl text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v2f vert (appdata v) | |
{ | |
v2f o; | |
o.uv = v.uv; | |
o.vertex = float4(v.uv.x * 2 - 1, 1 - v.uv.y * 2, 0, 1); | |
return o; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
public class MetallicSmoothnessTextureGenerator : EditorWindow | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[ExecuteInEditMode] | |
public class LookAtIKInEditMode : MonoBehaviour | |
{ | |
[SerializeField] private bool active; | |
[SerializeField] private Transform target; | |
[SerializeField, Range(0f, 1f)] private float lookAt; | |
[SerializeField, Range(0f, 1f)] private float body; | |
[SerializeField, Range(0f, 1f)] private float head; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
public class DBController : MonoBehaviour | |
{ | |
public Transform[] Bones; | |
[Range(0f, 1f)] public float Damping, Elasticity, Stiffness, Inert; | |
public float Radius; | |
public AnimationCurve DanpingDistrib, ElasticityDistrib, StiffnessDistrib, InertDistrib, RadiusDistrib; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const num = 0; | |
const str = 'あ'; | |
const bool = true; |