Skip to content

Instantly share code, notes, and snippets.

View jelling's full-sized avatar

Jon Elling jelling

View GitHub Profile
@jelling
jelling / ThreeEffects.tsx
Created September 18, 2024 17:33
Wraps ThreeJS Post-processing effects so they can be used declaratively in React-Three-Fiber. I need this because I was having build related issues with the `@react-three/postprocessing` library.
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
import { DotScreenPass } from 'three/examples/jsm/postprocessing/DotScreenPass';
import { RenderPixelatedPass } from 'three/examples/jsm/postprocessing/RenderPixelatedPass.js';
import { OutlinePass } from 'three/examples/jsm/postprocessing/OutlinePass';
import { UnrealBloomPass } from 'three/examples/jsm/postprocessing/UnrealBloomPass';
import { Canvas, extend, Object3DNode, useFrame, useThree } from '@react-three/fiber';
import { Vector2 } from 'three';
import { useRef, useEffect } from 'react';
@jelling
jelling / disableDEP.md
Created April 8, 2023 13:38 — forked from volcomism/disableDEP.md
Disable DEP lock on macOS Catalina.md

Disable DEP lock on macOS Catalina.md

  1. Boot into recovery using command-R during reboot, erase the HD using Disk Utility, and select reinstall macOS
  2. When it reboots again, be sure to press command-R to boot into recovery and continue

Procedure

  1. Open Utilities → Terminal and type
$ csrutil disable