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
@echo off | |
setlocal enabledelayedexpansion | |
REM Set the directory containing the images | |
set "img_dir=D:\Projects\- Looking Glass Portrait\MIOPS Capsule Slider\Render\Cicada_01" | |
set "output_file=%img_dir%\collage.jpg" | |
REM Create a sorted list of images | |
set "sorted_list=" | |
for /f "tokens=*" %%f in ('dir /b /on "%img_dir%\*.tif"') do ( |
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; | |
using UnityEngine.InputSystem; | |
public class HeadAttach : MonoBehaviour | |
{ | |
public Transform Target; | |
public InputAction HmdPosition; | |
public InputAction HmdRotation; | |
private void Awake() |
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
@ECHO OFF | |
setlocal enabledelayedexpansion | |
for %%f in (*.TS) do ( | |
set /p val=<%%f | |
ffmpeg -i %%f -map 0 -c copy %%~nf.mp4 | |
) |
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
private struct ParticleData | |
{ | |
public ParticleSystem System; | |
public ParticleSystem.Particle[] Particles; | |
public Transform Camera; | |
public ParticleSystemRenderSpace Alignment; | |
} | |
/// <summary> | |
/// Collect particle systems which are in view and use billboard rendermode. |
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 UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// This asset preprocessor sets the importer's global scale to 1.0. | |
/// This way the scale in 3dsmax corresponds correctly to the scale in Unity. | |
/// </summary> | |
class PostProcessor_GlobalScale1 : AssetPostprocessor { | |
/// <summary> | |
/// This method is called just before importing an FBX. |