Comments (3)
In terms of architecture, I would very much like a Material
(or derived class) be just the material properties (and state) plus the update function to mark the material as dirty. But all details relating to uniforms/rendering should ideally be owned/managed by the renderer. This would help simplify our material classes massively.
from engine.
There are sometimes even global
uniform, e.g. time
or windDirection
that would be re-used by multiple shaders.
from engine.
There are sometimes even
global
uniform, e.g.time
orwindDirection
that would be re-used by multiple shaders.
Yep that already works fine. Whatever is not in the view / material uniform blocks is automatically added to the mesh uniform block .. so that would be the case with those global uniforms.
At some point we might enable users to add global uniforms to the view UB, but for now they'd be per mesh.
from engine.
Related Issues (20)
- WebGPU - support rendering to slice of a 3D texture
- Improve Gaussian Splats performance HOT 3
- App crashes when drawing lines to disabled layer
- Gizmo movement plane HOT 5
- Gslang in engine examples runs our of memory in Safari
- Not loading TypeScript types definitions due to problematic "exports" field in package.json HOT 2
- Re-loading cubemaps fail to load associated textures HOT 2
- Ammo.js "table index is out of bounds" following Trigger destruction
- [Examples] `npm run develop` slower/bigger than it has to be HOT 1
- Question on multi-app HOT 2
- TypeError: e is not a constructor on loading glb model from ceisium HOT 2
- Inconsistencies with Anim component.
- Application crash HOT 2
- Some glb files are not rendered correctly HOT 1
- Private Vercel bot Previews HOT 1
- Cannot create collision mesh using accessors
- Gizmo axis color does not restore when enabled (dsiabled=false)
- Neutral tonemapping does not implement exposure. HOT 1
- Gizmo keep selected when rotating camera
- Particles depend on camera angle HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engine.