This file contains hidden or 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
| Shader "Unlit/Stable Constant Texture Size" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } | |
| LOD 100 |
This file contains hidden or 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
| Shader "Pristine Triplanar Grid" | |
| { | |
| Properties | |
| { | |
| [KeywordEnum(World,Object,ObjectAlignedWorld)] _GridSpace ("Grid Space", Float) = 0.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| [Toggle(USE_VERTEX_NORMALS)] _UseVertexNormals ("Use Vertex Normals", Float) = 0.0 | |
| [Toggle] _ShowOnlyTwo ("Show Only Two Grid Axis", Float) = 0.0 | |
This file contains hidden or 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
| Shader "Unlit/InfiniteGrid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _GridBias ("Grid Bias", Float) = 0.5 | |
| _GridDiv ("Grid Divisions", Float) = 10.0 | |
| _BaseColor ("Base Color", Color) = (0,0,0,1) | |
| _LineColor ("Line Color", Color) = (1,1,1,1) |
This file contains hidden or 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
| // Original shader by @bgolus, modified slightly by @alexanderameye for URP, modified slightly more | |
| // by @gravitonpunch for ECS/DOTS/HybridRenderer. | |
| // https://twitter.com/bgolus | |
| // https://medium.com/@bgolus/the-quest-for-very-wide-outlines-ba82ed442cd9 | |
| // https://alexanderameye.github.io/ | |
| // https://twitter.com/alexanderameye/status/1332286868222775298 | |
| Shader "Hidden/Outline" | |
| { | |
| Properties |
This file contains hidden or 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
| """ | |
| python -m pip install moviepy | |
| """ | |
| import os | |
| from time import time | |
| import moviepy.editor as moviepy | |
| def convert_avi_to_mp4(avi_file_path): | |
| # function guard |
This file contains hidden or 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
| [global] | |
| trusted-host = pypi.python.org | |
| pypi.org | |
| files.pythonhosted.org | |
| proxy = http://[domain name]%5C[username]:[password]@[proxy address]:[proxy port] |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Microproxy | |
| This code is based on http://pastebin.com/mdsAjhdQ based on code based on microproxy.py written by ubershmekel in 2006. | |
| Microproxy is a very small HTTP proxy. It relays all bytes from the client to the server at a socket send and recv level. | |
| It looks at the Host: header to recognise where to connect to. | |
| """ |
This file contains hidden or 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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@mbostock/raster-reprojection |
This file contains hidden or 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
| // Editor script that displays the number and UV coordinates of each individual vertex making up a triangle within a mesh | |
| // To install, place in the Assets folder of a Unity project | |
| // Open via Window > Show Vertex Info | |
| // Author: Luke Gane | |
| // Last updated: 2015-02-07 | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class ShowVertexNumber : EditorWindow { |
This file contains hidden or 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
| //!Warning does not model intersection with the Planet itself in the middle of the atmosphere | |
| float calculateHazeFactor(in float fragDepth, in vec3 viewDir) | |
| { | |
| //hazeHeight and camPos are heights above sea level | |
| bool aboveHaze = camPos>hazeHeight; | |
| if (aboveHaze&&viewDir.y>=0.0) | |
| return 1.0; | |
| float planetRadius = 6357.0; | |
| float hazeRadius = planetRadius+hazeHeight; |
NewerOlder