Skip to content

Instantly share code, notes, and snippets.

View WangNianyi2001's full-sized avatar
🎓
Mastering

Nianyi Wang WangNianyi2001

🎓
Mastering
View GitHub Profile
@WangNianyi2001
WangNianyi2001 / SpectrumRemapping.shader
Last active August 15, 2022 15:29
频谱重映射片元着色器
Shader "Custom/SpectrumRemapping" {
Properties {
_MainTex("Texture", 2D) = "white" {}
_Frequencies("Frequencies (log)", Vector) = (0, 1, 0, 1)
}
SubShader {
Pass {
CGPROGRAM
#pragma vertex vertex
#pragma fragment fragment
@WangNianyi2001
WangNianyi2001 / filename.sh
Last active May 15, 2023 19:13
Useful bash scripts
#! /usr/bin/bash
bn="$(basename $*)";
fn=${bn%.*};
echo $fn;