Skip to content

Instantly share code, notes, and snippets.

View rohan-deshpande's full-sized avatar
🚀
Just shipped https://getnebula.app check it out!

Rohan Deshpande rohan-deshpande

🚀
Just shipped https://getnebula.app check it out!
View GitHub Profile
@rohan-deshpande
rohan-deshpande / TransformationShader.js
Last active January 1, 2021 04:39 — forked from jeanlescure/TransformationShader.js
ThreeJS: Vertex shader for translating, scaling, and rotating. Fragment shader for adding texture and controlling opacity.
THREE.TransformationShader = {
defines: {},
uniforms: {
"tDiffuse": { type: "t", value: texture },
"opacity": { type: "f", value: 1.0 },
"translationX": { type: "f", value: 1.0 },
"translationY": { type: "f", value: 1.0 },
"translationZ": { type: "f", value: 1.0 },
"scaleX": { type: "f", value: 1.0 },
@rohan-deshpande
rohan-deshpande / macos-app-icon.md
Created July 12, 2020 07:15 — forked from jamieweavis/macos-app-icon.md
How to make an app icon for macOS using iconset & iconutil

How to create a .icns macOS app icon

How to make an app icon for macOS using iconset & iconutil

Saving images

Save your app icon with the following names & dimensions:

Name Dimensions
icon_16x16.png 16x16
@rohan-deshpande
rohan-deshpande / macos-app-icon.md
Created July 12, 2020 07:15 — forked from jamieweavis/macos-app-icon.md
How to make an app icon for macOS using iconset & iconutil

How to create a .icns macOS app icon

How to make an app icon for macOS using iconset & iconutil

Saving images

Save your app icon with the following names & dimensions:

Name Dimensions
icon_16x16.png 16x16
@rohan-deshpande
rohan-deshpande / README.md
Created December 27, 2019 04:36 — forked from donmccurdy/README.md
Convert legacy three.js (JSON) files to glTF 2.0

legacythree2gltf.js

Converts legacy JSON models (created by the three.js Blender exporter, for THREE.JSONLoader) to glTF 2.0. When original .blend files are available, prefer direct export from Blender 2.80+.

NOTE: JSON files created with .toJSON() use a newer JSON format, which isn't deprecated, and these are still supported by THREE.ObjectLoader. This converter does not support that newer type of JSON file.

Installation:

npm install canvas vblob three
@rohan-deshpande
rohan-deshpande / brew_symlink_error_sierra.md
Created August 2, 2018 05:19 — forked from dalegaspi/brew_symlink_error_sierra.md
Homebrew Symlink errors in Mac OSX High Sierra