Skip to content

Instantly share code, notes, and snippets.

@cjacobwade
cjacobwade / ShortplayMaker.py
Created May 8, 2022 02:51
Python script to cut a video into 10 second skips and 0.5 seconds of gameplay
import sys
from moviepy.editor import *
print(sys.argv)
skipTime = float(sys.argv[1])
videoTime = float(sys.argv[2])
inputName = sys.argv[3]
video = VideoFileClip(inputName)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
[ExecuteInEditMode]
[ImageEffectAllowedInSceneView]
public class WalkableCollisionEffect : MonoBehaviour
{
private readonly string normalShaderName = "Big Hops/Walkable Collision Normal";
@cjacobwade
cjacobwade / SceneVisualsData.cs
Last active January 31, 2023 14:17
This is MIT license and will be part of BigHopsTools when I get around to it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Reflection;
#if UNITY_EDITOR
using UnityEditor;
#endif
[CreateAssetMenu(fileName = "SceneVisualsData", menuName ="Luckshot/Scene Visuals Data")]
Shader "Big Hops/Character"
{
Properties
{
}
SubShader
{
Tags { "RenderType"="Opaque" "Queue"="Geometry" }
LOD 200
using UnityEngine;
using System.Collections;
public class Camera : MonoBehaviour {
public GameObject player;
//Images
public Texture2D pauseButton;
public Texture2D playButton;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityStandardAssets.ImageEffects;
[ExecuteInEditMode]
public class IndoorMaskEffect : ImageEffectBase
{
[SerializeField]
float _showMaskTime = 0.3f;
Shader "Sausage/Foliage/GrassGradient"
{
Properties
{
_Color("Color", Color) = (1, 1, 1, 1)
_Color2("Color2", Color) = (1, 1, 1, 1)
_GradientScale("Gradient Scale", Float) = 1.0
_GradientOffset("Gradient Offset", Float) = 0.0
// This one is tied up with JMO toon shading, so I can't just past the shader :/
half _SmushMinZ;
half _SmushXYOffset;
half4 _SmushCenterPos;
half4 initWorldPos;
// Vert
o.initWorldPos = worldPos;
half dist = _SmushMinZ - o.initWorldPos.z;
if(worldPos.z < _SmushMinZ)
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Sausage/Water/Toon"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_SplashNormalFactor("Normal Factor", Range(1, 5)) = 1
_Smoothing("Normal Smoothing", Range(0, 1)) = 0.3
Shader "Sausage/Paint/Surface"
{
Properties
{
_Color("Color", Color) = (1,1,1,1)
_MainTex("Albedo (RGB)", 2D) = "white" {}
_Glossiness("Smoothness", Range(0,1)) = 0.5
_Metallic("Metallic", Range(0,1)) = 0.0
_BumpScale("Scale", Float) = 1.0