TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Module that casts photorealistic shadows

45 pointsby vinhnxalmost 12 years ago

5 comments

misnomealmost 12 years ago
&quot;Photorealistic&quot; is a big, big stretch here. Why is the shadow the colour of the object that is shadowing it? Why doesn&#x27;t the softness of the shadow relate to the distance to the light source? Why don&#x27;t adjacent objects affect each other shadow colours? Also, the inset shadow doesn&#x27;t seem to work - the cursor can hover directly over shadow area.<p>It mostly seems to be a css shape-repeater to give a &#x27;shadow-like&#x27; visual appearance in a dynamic direction.<p>I mean, I&#x27;m not trying to put down the writers js&#x2F;css skills, but when I read &quot;Photorealistic shadows&quot;, I think of something like LuxRender. So, probably, just marketing skills.
jasallenalmost 12 years ago
Well I didn&#x27;t <i>notice</i> any performance issues, but based on the other comment I checked out perfmon, and yeah, its pegging a core.<p>Maybe less sprites on the demo page?
评论 #5985907 未加载
atjoslinalmost 12 years ago
This is a cool idea :-) You should make a demo with just one object though, so it doesn&#x27;t lag so much.
nkwiatekalmost 12 years ago
I bet if you `s&#x2F;box-shadow&#x2F;text-shadow&#x2F;` a lot more people will find ways to use it.
hyborg787almost 12 years ago
Perfect for making me click the back button when your landing page performs abysmally slow.