Skip to content

Instantly share code, notes, and snippets.

View thomasvanta's full-sized avatar

VanTa thomasvanta

View GitHub Profile
@Dewb
Dewb / An EYESY Shader Example.md
Last active April 12, 2022 16:22
Example of using GLSL shaders on the EYESY openFrameworks beta OS

EYESY openFrameworks mode demonstrating the use of GLSL shaders.

Requirements/Usage:

  • Install the EYESY_OS beta image from December 2021
  • Connect to EYESY wifi editor, create a new folder, and place these three files in it
  • You might also want to sync to ofEyesy commit 3991169 or newer. (It might work fine with original OS image or latest, but this is what my local repo is at currently.)

Video demo: https://vimeo.com/698406641

@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active September 25, 2024 07:25
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@jeffvella
jeffvella / AddressablesLoader.cs
Last active April 29, 2024 16:55
Loader script for caching addressables to load syncronously.
using System;
using System.Collections.Generic;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
using UnityEngine.ResourceManagement.ResourceLocations;
using Object = UnityEngine.Object;
public class AddressableLabels
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Math.md
Last active September 20, 2024 06:11
GLSL Math functions

Trigonometry

const float PI = 3.1415926535897932384626433832795;
const float PI_2 = 1.57079632679489661923;
const float PI_4 = 0.785398163397448309616;

float PHI = (1.0+sqrtf(5.0))/2.0;
@acarabott
acarabott / buildAndRun.sh
Last active October 12, 2016 20:50
openFrameworks Sublime Text Build
#!/bin/bash
# This lives in your project directory, alongside src/, bin/, config.make, etc
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
make Debug && make RunDebug;
@roxlu
roxlu / testApp.cpp
Created May 6, 2012 15:37
Caustic simulation / shaders - openFrameworks
#include "testApp.h"
const string SHADER_VS = " \
uniform mat4 projection_matrix; \
uniform mat4 view_matrix; \
attribute vec4 pos; \
attribute vec2 tex; \
varying vec2 vtex; \
\
void main() { \