Skip to content

Instantly share code, notes, and snippets.

View spartawhy117's full-sized avatar

SpartaWHY117 spartawhy117

View GitHub Profile
@bitinn
bitinn / MainLightDataNode.cs
Last active August 11, 2023 08:15 — forked from ciro-unity/MainLightNode.cs
A custom node for Unity's ShaderGraph to capture lighting and use it into the shader. Works as of Dec 2018, but the APIs might change!
using UnityEngine;
using UnityEditor.ShaderGraph;
using System.Reflection;
// IMPORTANT:
// - tested with LWRP and Shader Graph 4.6.0-preview ONLY
// - likely to break in SG 5.x and beyond
// - for HDRP, add your own keyword to detect environment
[Title("Custom", "Main Light Data")]
@phi-lira
phi-lira / PhysicallyBasedExample.shader
Last active May 19, 2020 05:42
Physically Based Example shader that works with Lightweight Render Pipeline (LWRP) 4.X.X-preview
Use https://gist.github.com/phi-lira/225cd7c5e8545be602dca4eb5ed111ba instead.
@deneschen
deneschen / windows CMD命令大全及详细解释和语法
Created February 26, 2018 14:33
windows CMD命令大全及详细解释和语法
windows CMD命令大全及详细解释和语法
引用:
http://letle.iteye.com/blog/169045
http://www.cppblog.com/kyelin/archive/2007/04/21/22540.aspx
windows批处理程序中的特殊字符
批处理介绍
纯以dos系统而言,可执行程序大约可以细分为五类,依照执行优先级由高到低排列分别是:
DOSKEY宏命令(预先驻留内存)
@phi-lira
phi-lira / UniversalPipelineTemplateShader.shader
Last active April 4, 2024 13:42
Template shader to use as guide to create Universal Pipeline ready shaders. This shader works with Universal Render Pipeline 7.1.x and above.
// When creating shaders for Universal Render Pipeline you can you the ShaderGraph which is super AWESOME!
// However, if you want to author shaders in shading language you can use this teamplate as a base.
// Please note, this shader does not necessarily match perfomance of the built-in URP Lit shader.
// This shader works with URP 7.1.x and above
Shader "Universal Render Pipeline/Custom/Physically Based Example"
{
Properties
{
// Specular vs Metallic workflow
[HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0
@eelstork
eelstork / Orientation.cs
Last active October 12, 2022 02:00
A C# implementation of aeronautic coordinates for Unity 3D
using UnityEngine;
using System.Collections;
public class Orientation : MonoBehaviour {
Vector3 pitchYawRoll{
get{
return new Vector3(pitch,yaw,roll);
}
set{
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@gjorquera
gjorquera / console.cpp
Last active February 4, 2024 12:44
Qt way to read from stdin.
#include <iostream>
#include "console.hpp"
void Console::run()
{
std::cout << "First message" << std::endl;
std::cout << "> " << std::flush;
connect(m_notifier, SIGNAL(activated(int)), this, SLOT(readCommand()));
}