-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WindDemo: Rename uniforms #1288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we copying the entire project
module.
Why not just import the project
module and override any specific function that needs to be overridden?
That would seem like a great simplification of the shader code here.
@ibgreen , its doing per-fragment lighting, so needed project methods in fragment shader. When we support per-fragment lighting in |
@@ -0,0 +1,159 @@ | |||
// NOTE: this is same as luma.gl 'fp32' module except this is applied to fragment shader. | |||
const fsfp32shader = `\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe no need to copy the text? Can't we just import the luma.gl module and just create a new javascript object
export default {fs: vsmodule.vs}
?
* WindDemo: Create and FS versions of fp32, project and lighting modules and remove duplicate shader code from layers.
fp32
,project
andlighting
shader modules.delaunay-cover
andwind
layer and use above shader modules.Verified running wind demo.