How to make an app icon for macOS using
iconset
&iconutil
Save your app icon with the following names & dimensions:
Name | Dimensions |
---|---|
icon_16x16.png |
16x16 |
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 }, |
Thinking about this in a nextjs context, let's say we have two components Video and AnimatedGif. For larger screens, we want to load the video, but for smaller screens, and perhaps slower devices, we want to show the gif. We also want to async load these, because they shouldn't block the rest of the page. They are media items so they don't need to be SSR'd, and also it would be good if this could be done with Suspense in mind. Any ideas?
Create a custom hook, something like useDeviceAndViewport()
that returns the relevant info. You need to know the network status, the viewport dimensions and whether the element is within the viewport.
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
# NOTE: Replace forge.site.com with your site domain, a lot of this stuff will be auto generated by forge. | |
# FORGE CONFIG (DO NOT REMOVE!) | |
include forge-conf/forge.site.com/before/*; | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name forge.site.com; | |
root /home/forge/forge.site.com/; |