TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Frickin' shaders with frickin' laser beams

160 点作者 clebio超过 3 年前

8 条评论

wodenokoto超过 3 年前
While I hate tons of javascript as much as the next HN'er, do yourself a favor and scroll _up_, enjoy the view and press play. So awesome!
评论 #29535988 未加载
评论 #29536939 未加载
评论 #29536077 未加载
junon超过 3 年前
The screenshots are from one of my favorite games called The Talos Principle. Curious, is the author of the site associated with it? That game is custom built, looks incredible even on cheaper hardware (e.g. it looked beautiful on my 2015 MBP when I first played it). Crazy stuff.
评论 #29534496 未加载
评论 #29535306 未加载
vanderZwan超过 3 年前
&gt; <i>The key thing is that I don&#x27;t intend to make thousands of draw calls this way either. I just want to make a couple dozen of exactly the draw calls I need, preferably today, not next week. It&#x27;s a radically different use case from what game engines need, which is what the current industry APIs are really mostly tailored for.</i><p>Whenever I try to learn WebGL (or similar technology) I give up after a while. In my head I imagine it as if the entire automotive industry was only aimed at F1 race cars, and people who want to do practical day-to-day things with cars only had F1 tech to work with, including the cost and complexity.
评论 #29536724 未加载
评论 #29537365 未加载
davedx超过 3 年前
Can&#x27;t believe this doesn&#x27;t have more upvotes, seems like it could be a pretty groundbreaking project to advance the state of the art of GPU programming.<p>Having done a decent amount of games development, and a little bit of shader coding, the pain points fixed by the approach in the article are significant. Really impressive stuff.<p>I didn&#x27;t even realize it was going to be TypeScript until much later in the article too, that was the cherry on top :)
inDigiNeous超过 3 年前
Enjoyed looking at the code, might want to try this system out when WebGPU starts to be more relevant. The importing of .glsl symbols somehow into typescript would be perfect for playing around with effects.<p>Many times it would be better to have a simple way to express ideas, not having to deal with the most performant systems, which might take a lot more figuring out or issues with debugging your shaders.
onion2k超过 3 年前
The idea of writing shaders in something akin to Typescript sounds a bit like a dream.
评论 #29535444 未加载
perceptive超过 3 年前
In case you are reading this on mobile and have no clue where to find the amazing animations in action: watch the site in desktop mode and scroll up.
aappleby超过 3 年前
&quot;In my case, I want to construct and call any shader I want at run-time. Arbitrary composition is the entire point. This implies that when I want to go make a GPU call, I need to generate and link a new program, based on the specific types and access patterns of values being passed in.&quot;<p>For toy apps, sure. For professional apps or games, abso-frickin-lutely not. Shader compilation jank is still an annoying issue in even recent games, and even having the ability_ to define arbitrary shaders at any point is such a huge footgun that I&#x27;d never let it past code review.
评论 #29536921 未加载
评论 #29537785 未加载
评论 #29537315 未加载