- Learn how Canvas works
- Learn how Create a scene
- Learn how to Positining elements in a scene
- Learn how to create 3D elements using code
- Learn how to use 3D assets, textures, maps HDRIs
- Learn how to interact based on events, click, scroll, drag
- Learn how Animate elements - Frames
- Learn how Map WebGL elements to DOM elements whilst scrolling
- Learn how Preload and prerender textures (replicates AssetLoader)
- Learn how Manage WebGL resources (create and destroy materials and geometries as needed)
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
/*------------------------------ | |
Background Cover UV | |
-------------------------------- | |
u = basic UV | |
s = screensize | |
i = image size | |
------------------------------*/ | |
vec2 CoverUV(vec2 u, vec2 s, vec2 i) { | |
float rs = s.x / s.y; // Aspect screen size | |
float ri = i.x / i.y; // Aspect image size |
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 React from 'react'; | |
import { render, cleanup } from '@testing-library/react'; | |
import { MockPayloadGenerator } from 'relay-test-utils'; | |
import { useRelayEnvironment } from 'react-relay/hooks'; | |
import TransactionList from '../TransactionList'; | |
afterEach(cleanup); | |
describe('<TransactionList />', () => { | |
it('should reject query', () => { |
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 { z } from 'zod'; | |
type SupportedLocales = 'en-US' | 'pt-BR'; | |
export const dictionaries: Record< | |
SupportedLocales, | |
Record<string, Record<string, string>> | |
> = { | |
'en-US': { | |
common: { |
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
[alias] | |
ps = push | |
ci = commit | |
co = checkout | |
cm = checkout master | |
cb = checkout -b | |
rb = rebase master | |
st = status -sb | |
sf = show --name-only | |
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30 |
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
<button class="button"> | |
<div class="trash"> | |
<div class="top"> | |
<div class="paper"></div> | |
</div> | |
<div class="box"></div> | |
<div class="check"> | |
<svg viewBox="0 0 8 6"> | |
<polyline points="1 3.4 2.71428571 5 7 1"></polyline> | |
</svg> |
This help only covers the parts of GLSL ES that are relevant for Shadertoy. For the complete specification please have a look at GLSL ES specification
Version: WebGL 2.0
Arithmetic: ( ) + - ! * / %
Logical/Relatonal: ~ < > <= >= == != && ||
Bit Operators: & ^ | << >>
Comments: // /* */
Types: void
bool
int
uint
float
vec2
vec3
vec4
bvec2
bvec3
bvec4
ivec2
ivec3
ivec4
uvec2
uvec3
uvec4
mat2
mat3
mat4
mat?x?
sampler2D,
sampler3D
samplerCube
Format: float a = 1.0; int b = 1; uint i = 1U; int i = 0x1;
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
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
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
{"lastUpload":"2021-02-21T18:20:37.642Z","extensionVersion":"v3.4.3"} |
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
function getFileNames() { | |
return require.context( | |
'./', | |
true, | |
process.env.NODE_ENV === 'production' ? /\.js$/ : /\.ts$/ | |
) | |
} | |
const context = getFileNames() | |
const files = context |
NewerOlder