Skip to content

Instantly share code, notes, and snippets.

View GeorgeAdamon's full-sized avatar
🎯
Focusing

George Adamopoulos GeorgeAdamon

🎯
Focusing
View GitHub Profile
@GeorgeAdamon
GeorgeAdamon / Quaternion.hlsl
Created February 23, 2023 18:37 — forked from mattatz/Quaternion.hlsl
Quaternion structure for HLSL
#ifndef __QUATERNION_INCLUDED__
#define __QUATERNION_INCLUDED__
#define QUATERNION_IDENTITY float4(0, 0, 0, 1)
#ifndef PI
#define PI 3.14159265359f
#endif
// Quaternion multiplication
@GeorgeAdamon
GeorgeAdamon / UniversalPipelineTemplateShader.shader
Created May 21, 2020 18:35 — forked from phi-lira/UniversalPipelineTemplateShader.shader
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