Skip to content

Instantly share code, notes, and snippets.

View ArturoNereu's full-sized avatar
🌌
Importing Small Assets

Arturo Nereu ArturoNereu

🌌
Importing Small Assets
View GitHub Profile
@ArturoNereu
ArturoNereu / CockpitOutline.cs
Created November 30, 2023 21:29
Fullscreen Pass to allow the configuration of the Outline color and Width for Unity' URP 3D Sample: https://unity.com/demos/urp-3d-sample
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class CockpitOutline : FullscreenEffectBase<CockpitOutlinePass>
{
}
public class CockpitOutlinePass : FullscreenPassBase
{
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
@ArturoNereu
ArturoNereu / OutlineVolumeComponent.cs
Created November 30, 2023 21:28
Volume Component to allow the configuration of the Outline color and Width for Unity' URP 3D Sample: https://unity.com/demos/urp-3d-sample
using UnityEngine;
using UnityEngine.Rendering;
[VolumeComponentMenu("Sample Scene/Outline")]
public class OutlineVolumeComponent : VolumeComponent
{
public BoolParameter Enabled = new BoolParameter(false);
public ColorParameter outlineColor = new ColorParameter(Color.white, true, false, false);
public ClampedFloatParameter outlineWidth = new ClampedFloatParameter(0,0, 10.0f);
@ArturoNereu
ArturoNereu / UI-Fast-Default
Created April 8, 2016 18:12
A simpler version of the UI Shader for mobile and low spec devices
Shader "UI/Fast-Default"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
}
SubShader
{
@ArturoNereu
ArturoNereu / main.cpp
Created May 6, 2018 03:15
Delaunay and Voronoi in CPP with OpenGL
/***************************************************
12 de marzo del 2011
Arturo Nereu Nunez Martinez
***************************************************/
#include <windows.h>
#include <GL/glut.h>
#include <stdio.h>
#include <math.h>
//Cusing System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using Unity.Services.Analytics;
using Unity.Services.Core;
using Unity.Services.Authentication;
@ArturoNereu
ArturoNereu / unity_helpers.py
Last active June 5, 2019 22:07
A collection of Python functions to make my life outside the Unity Editor easier
# A collection of Python functions to make my life outside the Unity Editor Easier
# Author: Arturo Nereu @ArturoNereu
# License: Do whatever you want with the code
import os
def removeMetaFiles(dirName):
for root, dirs, files in os.walk(dirName):
for name in files:
if name.endswith(".meta"):
fileToDelete = os.path.join(root, name)
@ArturoNereu
ArturoNereu / BareBoneShader.shader
Created October 11, 2016 22:32
The basic shader for Unity. A template to make more advanced ones.
Shader "CustomShaders/BareBoneShader"
{
//Properties
Properties
{
_Color("Main Color", Color) = (1,1,1,1)
}
//Subshaders
SubShader
@ArturoNereu
ArturoNereu / unity.gitignore
Created December 4, 2016 00:02
Useful gitignorefile for repos with Unity project not located in the root
# =========================
# Project Specific Ignores
# =========================
# =========================
# General Unity Files
# =========================
[Ll]ibrary/
@ArturoNereu
ArturoNereu / shadertoyNotes.txt
Created August 20, 2018 19:51
Shadertoy Notes
Color ranges from 0 to 1. vec4(0.0, 1.0, 0.5, 0.75)
Top-left corner is (0,1).
@ArturoNereu
ArturoNereu / manifest.json
Created March 10, 2018 07:17
This is the manifest.json needed for the https://gcl.unity.com/projects/shader-graph-intro-demo on 2018.1b4
{
"registry" : "https://staging-packages.unity.com",
"dependencies" :
{
"com.unity.render-pipelines.lightweight": "0.1.28",
"com.unity.shadergraph" : "0.1.17"
}
}