Skip to content

Instantly share code, notes, and snippets.

View aunpyz's full-sized avatar
✝️

Aunnop Kattiyanet aunpyz

✝️
View GitHub Profile
//from
//class Person {
// final String name;
// final int age;
//
// Person({
// required this.name,
// required this.age,
// })
//}
Shader "Eldemarkki/Triplanar Shader"
{
Properties
{
XColor("X Color", Color) = (0.42, 0.42, 0.42, 1)
YColor("Y Color", Color) = (0.44, 0.74, 0.01, 1)
NegativeYColor("Negative Y Color", Color) = (0.32, 0.32, 0.32, 1)
Sensitivity("Sensitivity", Range(0,1)) = 0.6
SensitivityBlend("Sensitivity Blend", Range(0, 0.2)) = 0.1
BlendStepCount("Blend Step Count", Int) = 2
@aunpyz
aunpyz / barrier.go
Last active February 7, 2019 08:12
Barrier implementation using Golang's channel
package main
import "fmt"
type callback func()
type fn func(int)
func main() {
barriers := Barrier(10)
@aunpyz
aunpyz / MeshCut.cs
Created August 9, 2018 18:08 — forked from alexcmd/MeshCut.cs
Mesh cut algorithm for Unity
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class MeshCut
{
private static Plane blade;
private static Transform victim_transform;
private static Mesh victim_mesh;