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);
//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 / 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 / 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>
@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"
}
}
@ArturoNereu
ArturoNereu / NeonHowTo
Created February 6, 2018 18:29
Steps on how to demo the Neon Project.
NEON DEMO - How To
Neon Demo.Unity
- Talk about the Timelines.
- Turn On and Off the Post Processing Volumes - Maybe turno each effect off and start turning them on and explaining them.
- Turn On and Off the Scene Ligthing
- Mention roughly, how the scene was constructed
* Buoy.
* Skybox.
* Buildings.
@ArturoNereu
ArturoNereu / CameraControl.cs
Created May 22, 2017 15:53
Una versión corregida del script CameraControl.cs para seguir el tutorial de Tanks! https://www.youtube.com/playlist?list=PLyAKiFBsTZgFPMiOabrpxLq7EviYGwujy
using UnityEngine;
namespace Complete
{
public class CameraControl : MonoBehaviour
{
public float m_DampTime = 0.2f; // Approximate time for the camera to refocus.
public float m_ScreenEdgeBuffer = 4f; // Space between the top/bottom most target and the screen edge.
public float m_MinSize = 6.5f; // The smallest orthographic size the camera can be.
public Transform[] m_Targets; // All the targets the camera needs to encompass.
@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 / 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/