Skip to content

Instantly share code, notes, and snippets.

@rmalecki
rmalecki / PlaceTreeShadowCasters.cs
Created September 11, 2015 16:06
Unity 5: Create stand-in geometry for Terrain trees to bake correct lightmaps
using UnityEngine;
using UnityEngine.Rendering;
using UnityEditor;
public class PlaceTreeShadowCasters
{
[@MenuItem ("Terrain/Place Tree Shadow Casters")]
static void Run()
{
@phi-lira
phi-lira / OverdrawDebugReplacement.cs
Last active December 21, 2021 15:31
Overdraw Debugger Unity
using UnityEngine;
using System.Collections;
public class OverdrawDebugReplacement : MonoBehaviour
{
public Shader _OverdrawShader;
private Camera _Camera;
private bool _SceneFogSettings = false;
@maki-rxrz
maki-rxrz / FFmpeg patches
Last active August 3, 2023 11:54
FFmpeg patches
各パッチの簡単な説明を記載しておきます。
----------------------------------------------------------------------------------------------------
■ ffmpeg-4.2.2-libavcodec-av-picture-structure.diff
----------------------------------------------------------------------------------------------------
[パッチ対象]
-> libavcodec/mpegvideo_parser.c

Stream audio from Windows to Linux

Tested on Ubuntu 16.04 and Windows 10 Redstone 1

Both boxes need to be on the same network (such that multicast packets can be passed between them)

Installing

Linux

  1. Setup JACK (easy to do with Cadence)

Windows

@tsubaki
tsubaki / ObjectDeplicate.cs
Last active February 24, 2019 15:55
()無しで元オブジェクトの下に生成する
using UnityEngine;
using UnityEditor;
public class ObjectDeplicate
{
[MenuItem("Edit/DummyDeplicate %d", false, -1)]
static void CreateEmptyObjec2t()
{
foreach (var obj in Selection.objects)
{
@gryte
gryte / install_config-win2k16_core-proxmox.md
Last active November 21, 2023 06:06
Install and Configure - Windows Server 2016 Core on ProxMox VM

Install and Configure - Windows Server 2016 Core on ProxMox VM

stage drivers locally

# display available drives
Get-PSDrive

# create local driver directory
mkdir c:\drivers
@SrPhilippe
SrPhilippe / vrchat-dynamic-bone-config.md
Last active May 31, 2024 12:01
Nice configs for dynamic bone to use on VRChat

Vrchat dynamic bone configs

Hair

Normal Long Hair Other
name value name value name value
damping 0.2 damping 0.894 damping 0.025
elasticity 0.05 elasticity 0.1 elasticity 0.008
stiffness 0.8 stiffness 0.783 stiffness 0.85
@halby24
halby24 / DBController.cs
Last active November 13, 2020 11:39
ダイナミックボーン 一括制御するやつ
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;
@gatosyocora
gatosyocora / Unzip_unitypackage.bat
Last active July 1, 2020 08:20
unitypackageを展開するbatファイル (cmdで引数にunitypackageを指定して使う)
@echo off
rem current character code
for /f "usebackq tokens=2 DELIMS=:" %%a in (`chcp`) do @set CHARCODE=%%a
chcp 65001 > nul 2>&1
rem unzip folder
set FOLDERNAME=unitypackage
if exist %FOLDERNAME% (goto FILE_TRUE) else goto FILE_FALSE
:FILE_TRUE
@Connie-Wild
Connie-Wild / channels.yml
Last active July 21, 2024 07:15
mirakurun BSCSチャンネル設定(2024/06/01現在)
- name: NHK BS1
type: BS
channel: BS15_0
serviceId: 101
- name: NHK BSプレミアム
type: BS
channel: BS03_1
serviceId: 103
- name: BS日テレ
type: BS