Install the following dependencies
brew install pipenv
brew install ffmpeg
pipenv install --python 3.10
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
<div class="container"> | |
<video class="input_video"></video> | |
<div class="canvas-container"> | |
<canvas class="output_canvas" width="1280px" height="720px"> | |
</canvas> | |
</div> | |
<div class="loading"> | |
<div class="spinner"></div> | |
<div class="message"> | |
Loading |
### JHW 2018 | |
import numpy as np | |
import umap | |
# This code from the excellent module at: | |
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
import random |
// idea from https://twitter.com/akivaw/status/1226681850564956160 | |
// blog post https://unitycoder.com/blog/2020/03/01/waves-shader/ | |
Shader "UnityLibrary/Mesh/DriftingWaves" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_FoamTex ("Foam", 2D) = "white" {} |
// =================================================================================================================== | |
// Raymarching shader. The shader uses code from two sources. One articles by iq https://www.iquilezles.org/www/articles/terrainmarching/terrainmarching.htm | |
// Another source is for the PBR lighting, the lighting is abit of an over kills, https://github.com/Nadrin/PBR/blob/master/data/shaders/hlsl/pbr.hlsl | |
// =================================================================================================================== | |
Shader "Unlit/Raymarcher" | |
{ | |
SubShader | |
{ |
Shader "Custom/Hologram" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
[HDR]_Emission ("Emission", Color) = (0.0, 0.0, 0.0, 0.0) | |
_Speed ("Scroll Speed", float) = .5 | |
_Space ("Space", Range(0,1)) = .1 | |
_Division ("Division Count", float) = 150 | |
} |
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' | |
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
//Star Nest algorithm by Pablo Román Andrioli | |
//Unity 5.x shader by Jonathan Cohen | |
//This content is under the MIT License. | |
// | |
//Original Shader: | |
//https://www.shadertoy.com/view/XlfGRj | |
// |
* text=auto | |
# Unity files | |
*.meta -text -merge=unityamlmerge | |
*.unity -text -merge=unityamlmerge | |
*.asset -text -merge=unityamlmerge | |
*.prefab -text -merge=unityamlmerge | |
# Image formats | |
*.psd filter=lfs diff=lfs merge=lfs -text |
### JHW 2018 | |
import numpy as np | |
import umap | |
# This code from the excellent module at: | |
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
import random |