Skip to content

Instantly share code, notes, and snippets.

@ssshake
ssshake / isWrit
Last active June 16, 2024 23:03
Photon PUN Cheat Sheet
## Photon Methods
**public class Blank : Photon.PunBehaviour**
instead of mono behavior, use this to receive photon callbacks in your script.
**public override void OnLeftRoom()**
An example of overriding a punbehavior callback
@donmccurdy
donmccurdy / state_of_gltf_for_webvr_devs.md
Last active May 17, 2021 03:51
Summary of the glTF 2.0 ecosystem, as it affects WebVR devs.

State of glTF 2.0 for WebVR Devs

Date: Sept 11, 2017.

Summary of the glTF 2.0 ecosystem, as it affects WebVR devs.

Engines

  • three.js, BabylonJS, and A-Frame v0.7.0+ support glTF2.0.
  • ... and more.
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active June 21, 2024 05:12
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@kylemcdonald
kylemcdonald / three.js.shader.html
Last active March 27, 2023 00:45
Minimal three.js shader example.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}