Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
突然生えてきたシェーダー言語TSL
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
お茶
May 19, 2025
23
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
突然生えてきたシェーダー言語TSL
お茶
May 19, 2025
Transcript
10 slides
突然生えてきたシェーダー言語 TSL(Three.js Shader Language) お茶
いつもながら Three.jsが好きです
Three.jsってなんなん これを見れば大体わかる SOUGEN Ustubo社 Webファーストメタバース プロジェクト すごい(語彙力) https://sougen.co/
Three.jsの鬼門 シェーダーむずいよねー! WebGLを扱うのがむずい GLSL(WebGLShaderLanguage) Web上でグラフィックの表現ができる
WebGLからWebGPUへ WebGLはグラフィックの表現を想定 → GPUの計算能力を活かせていない 3DグラフィックスでもGPUの計算能力の 必要性が高まっている 言語も GLSL → WGSL(WebGPU
Shader Languageに!)
Three.jsは WebGPUへの対応を進めていたが 自分でカスタムしたシェーダーは動かない WebGPUとWebGLどちらも動かしたい! GLSLとWGSLのむずさ 人類に優しくない(色々と) GLSL(C言語ベース) WGSL(Rustベース) 直感的にJSベースで書けると嬉しいよね!
Three.jsは そんなあなたに... TSL (Three.js Shader Language)! 言語と言いつつJSで書ける! WebGLとWebGPUのトランスパイルを 提供 Threeのエコシステムをそのまま使える
JSのみで WebGLとWebGPUに対応したシェーダーが書ける
ちょっとサンプル こんな感じ 普通にJS 必要moduleをimport して使うだけ Threeのエコシステム をそのまま活用できる
こうなります
まとめ Threeでシェーダーを使うならTSL Threeのエコシステムをそのまま使える JSで書けて学習コストが低い 人類にちょっとだけ優しい WebGPUとWebGLに両対応できる
More Decks by お茶
See All by お茶
DRY原則より「SOLID原則のS」
okamonster
0
52
Denoのしょぼい使い方
okamonster
0
28
なぜモダンな言語を学ぶか[2025/05/16 Progate Bar登壇]
okamonster
0
110
WebGLであそぼう! Three.jsについて
okamonster
0
38
クレカなしでもできる!Cloudflareではじめる金欠個人開発
okamonster
0
580
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
4
660
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
We Have a Design System, Now What?
morganepeng
55
8.4k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
How to build a perfect <img>
jonoalderson
1
6.3k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
New Earth Scene 8
popppiees
5
2.9k
Everyday Curiosity
cassininazir
0
430
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
970
The SEO Collaboration Effect
kristinabergwall1
1
630