Skip to content

Port shaders to TSL - #49

Open
IceCreamYou wants to merge 1 commit into
dgreenheck:mainfrom
IceCreamYou:main
Open

Port shaders to TSL#49
IceCreamYou wants to merge 1 commit into
dgreenheck:mainfrom
IceCreamYou:main

Conversation

@IceCreamYou

Copy link
Copy Markdown

This ports the app’s custom shaders from GLSL to TSL.

I wanted to use certain effects from the Three.js examples that use WebGPU. To support those effects, everything in the scene needs to use TSL. WebGLRenderer also supports TSL, so this port does not prevent the app from using WebGL.

The port moves the wind, noise, sky, ground, cloud, leaf, and grass effects to node materials. I also fixed a few integration issues with startup, alpha-tested shadows, and the LOD preview.

To be fully transparent, I had Codex write this, but I reviewed the code and verified the demo manually and it looks good to me.

Validation:

  • npm run build:lib
  • npm run build:app
  • Tested the various options in the local demo.

Replace shader hooks with node materials and preserve WebGPU startup. Keep alpha-tested foliage out of shadow maps and refresh LOD preview meshes when detail changes.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@IceCreamYou is attempting to deploy a commit to the DRG Software Solutions LLC Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant