Skip to content

Instantly share code, notes, and snippets.

View steffenvan's full-sized avatar

Steffen Van steffenvan

  • Google
  • Zürich, Switzerland
View GitHub Profile
@steffenvan
steffenvan / index.html
Created March 25, 2019 09:13
Three.js Checker Shadow Illusion
<script src="https://unpkg.com/three@0.94.0/build/three.min.js"></script>
<script src="https://unpkg.com/three@0.94.0/examples/js/controls/OrbitControls.js"></script>
<script src="https://unpkg.com/three@0.94.0/examples/js/controls/TransformControls.js"></script>
<script src="https://unpkg.com/dat.gui@0.7.2/build/dat.gui.js"></script>
<canvas id="tex" width="512" height="512"></canvas>
<span id="info">
When "B" is under shadow, it is the same color as "A".
Drag the purple square over the tiles to compare colors.
</span>
<div id="container"></div>
@steffenvan
steffenvan / gist:7e59799cccb62a042f3b49cf5177ffee
Created October 12, 2024 07:42 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream