Skip to content

Instantly share code, notes, and snippets.

Avatar

Henry Ventura hvent90

View GitHub Profile
@hvent90
hvent90 / VolumetricController.cs
Created Apr 9, 2020
Editing Volumetric Fog during runtime
View VolumetricController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
public class VolumetricController : MonoBehaviour
{
[Range(-1f, 1f)]
public float anistropy;
View SphereShake.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SphereShake : MonoBehaviour
{
public bool gravity;
[Header("Shake")]
// When enabled, the object will shake.
View Fabrik.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace IK_V3
{
public class Fabrik : MonoBehaviour
{
public Transform rootSubject;
public Transform target;
View RaymarchHDRP.shader
Shader "Raymarch/RaymarchHDRP"
{
SubShader
{
Cull Off ZWrite Off ZTest Always
Pass
{
HLSLPROGRAM
View RaymarchPostProcess.cs
// !!IMPORTANT!!
// The file name of this script MUST be RaymarchPostProcess.cs in order for it to be properly serialized!
// ------------------------------------------------
using System;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.PostProcessing;
[Serializable]
View RaymarchHDRP.shader
Shader "Raymarch/RaymarchHDRP"
{
SubShader
{
Cull Off ZWrite Off ZTest Always
Pass
{
HLSLPROGRAM
View RaymarchPostProcess.cs
using System;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.PostProcessing;
[Serializable]
public sealed class ShaderParameter : ParameterOverride<Shader> { }
[Serializable]
[PostProcess(typeof(RaymarchPostProcessRenderer), PostProcessEvent.AfterStack, "Raymarch/RaymarchHDRP")]
View clouds2.shader
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Raymarch/clouds2" {
Properties {
_MainTex("main tex", 2D) = "white" {}
_ValueNoise("value noise", 2D) = "white" {}
}
HLSLINCLUDE
#include "Packages/com.unity.postprocessing/PostProcessing/Shaders/StdLib.hlsl"
View arstechnica.py
# import libraries
import urllib2
from bs4 import BeautifulSoup
def getArticles(soup):
return soup.find_all('item')
def getHeadline(soup):
return soup.find('title').string
View gist:1bff686ff6c4f198f8b5
Process: imgshare [3368]
Path: /Users/USER/Downloads/imgshare 6.app/Contents/MacOS/imgshare
Identifier: org.pythonmac.unspecified.imgshare
Version: 0.0.0 (0.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: imgshare [3368]
User ID: 501
Date/Time: 2015-08-15 17:22:24.139 -0400