Skip to content

Instantly share code, notes, and snippets.

@Ipefyx
Ipefyx / BakedPrefab.cs
Last active January 7, 2021 18:24
Tool script to store lightmaps data in a prefab
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace FoxWork
{
public class BakedPrefab : MonoBehaviour
@Ipefyx
Ipefyx / SimpleWater.shader
Last active January 11, 2020 23:24
A stylized water shader in a few lines. By @miniosnart
Shader "Unlit/SimpleWater"
{
Properties
{
_Tint("Tint", Color) = (1, 1, 1, .5)
_MainTex ("Main Texture", 2D) = "white" {}
_NoiseTex("Extra Wave Noise", 2D) = "white" {}
_Speed("Wave Speed", Range(0,1)) = 0.5
_Amount("Wave Amount", Range(0,1)) = 0.5
_Height("Wave Height", Range(0,1)) = 0.5
// LoadingScreenManager
// --------------------------------
// built by Martin Nerurkar (http://www.martin.nerurkar.de)
// for Nowhere Prophet (http://www.noprophet.com)
//
// Licensed under GNU General Public License v3.0
// http://www.gnu.org/licenses/gpl-3.0.txt
using UnityEngine;
using UnityEngine.UI;
@Ipefyx
Ipefyx / mp4ToWebmNoAudio.bat
Created March 30, 2016 16:43
Uses ffmpeg to convert in batch mp4 video from a folder to webm's without audio track.
:: Uses ffmpeg to convert in batch all mp4 files from a folder to webm's without audio track
:: author: Ipefyx 23/03/2016
::
:: HOW TO USE
:: ==========
:: This script must be placed in the same folder of ffmpeg.exe if not defined in environment variables.
:: Create a "in" sub-folder in the same folder of this script (or change the %indDir% variable) and put in it all your mp4 files.
:: Execute this script
:: Converted files will be saved in the "out" sub-folder.
::
@Ipefyx
Ipefyx / mp4ToWebm.bat
Created March 23, 2016 18:27
Uses ffmpeg to convert in batch all mp4 files from a folder to webm files
:: mp4ToWebm.bat
:: Uses ffmpeg to convert in batch all mp4 files from a folder to webm's
:: author: Ipefyx 23/03/2016
::
:: HOW TO USE
:: ==========
:: This script must be placed in the same folder of ffmpeg.exe if not defined in environment variables.
:: Create a "in" sub-folder in the same folder of this script (or change the %indDir% variable) and put in it all your mp4 files.
:: Execute this script
:: Converted files will be saved in the "out" sub-folder.
@Ipefyx
Ipefyx / config.txt
Created October 21, 2015 21:00 — forked from andrusha/config.txt
Raspberry PI config for PAL RC output with overscan
avoid_safe_mode=1
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border