- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {MeshoptSimplifier, MeshoptEncoder} from "meshoptimizer"; | |
import {BufferAttribute, BufferGeometry, Mesh} from "three"; | |
await MeshoptSimplifier.ready; // await wasm promise | |
await MeshoptEncoder.ready; // await wasm promise | |
MeshoptSimplifier.useExperimentalFeatures = true; | |
export function createLOD_Levels(originalMesh: Mesh, simplificationLevel: number[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { useAnimatedFavicon } from './useAnimatedFavicon.js' | |
export function AnimatedFavicon() { | |
useAnimatedFavicon({ | |
imageURL: '/favicon-spritesheet.png', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Work = (...args: any[]) => any; | |
// Pass a function that provides a callback as single argument and returns another function F that calls that | |
// callback at some point. The result of makeContinuable will be a function that returns a promise that will | |
// resolve to the return value of F, once the callback is called. | |
export function makeContinuable<F extends Work>(wrapperFn: (cb: () => void) => F) { | |
return async (...args: Parameters<F>) => { | |
const outerPromise = new Promise<ReturnType<F>>(async (resolve1) => { | |
let res = null as ReturnType<F>; | |
// create another promise in whose executioner we'll call the passed function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useFrame, useThree } from '@react-three/fiber'; | |
import { useLayoutEffect, useMemo } from 'react'; | |
import { Camera, Vector3, Vector3Tuple } from 'three'; | |
import CSM, { Params } from 'three-csm'; | |
interface CascadedShadowMapProps extends Omit<Params, 'lightDirection' | 'camera' | 'parent'> { | |
fade?: boolean; | |
lightDirection?: Vector3Tuple; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as THREE from "three"; | |
import { BufferGeometry } from "three"; | |
/** | |
* Capsule Geometry | |
* especially helpful in 3D games | |
* original creator: | |
* @author maximequiblier | |
* | |
* Modified for typescript (partially) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Program: | |
# EC2 initially install node.js, git for development environment. | |
# You can modify nodev and nvmv for changing node and nvm version. | |
# Set permission to ec2-user install above. | |
# History: | |
# 2017/07/25 Hans First release | |
home=/home/ec2-user | |
nodev='8.11.2' | |
nvmv='0.33.11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Program: | |
# EC2 initially install node.js, git for development environment. | |
# You can modify nodev and nvmv for changing node and nvm version. | |
# Set permission to ec2-user install above. | |
# History: | |
# 2017/07/25 Hans First release | |
home=/home/ec2-user | |
nodev='8.11.2' | |
nvmv='0.33.11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chinese (China) translations for Devise(3.5.2) | |
# by Kenrick-Zhou (https://github.com/Kenrick-Zhou) | |
# https://gist.github.com/Kenrick-Zhou/7909822 | |
zh-CN: | |
devise: | |
confirmations: | |
confirmed: "您的帐号已经确认,您现在已登录。" | |
send_instructions: "几分钟后,您将收到确认帐号的电子邮件。" | |
send_paranoid_instructions: "如果您的邮箱存在于我们的数据库中,您将收到一封确认账号的邮件。" |