Skip to content
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

Shader Pipeline Roadmap #1031

Open
5 of 11 tasks
pjcozzi opened this issue Aug 13, 2013 · 4 comments
Open
5 of 11 tasks

Shader Pipeline Roadmap #1031

pjcozzi opened this issue Aug 13, 2013 · 4 comments

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 13, 2013

Current offline uses cases

  • Add default precision
  • Add built-in constants, structs, and functions
  • Add automatic uniforms

Current runtime use cases

Items

Ideas

  • Scriptable automatic uniforms, i.e., instead of hardcoding in ShaderProgram.js.

Done

  • Automatically prepend czm_ functions, types, and constants. Preserve useful line numbers with #line.
    • Unfortunately, this should probably include automatic uniforms even though we expect them to get optimized out.
    • Perhaps we can use the GLSL optimization for some of this.
  • Make #define-based uber-shaders easier to use, i.e., no explicit string concatenation.
  • GLSL optimization. Similar to glTF #34.
    • How hard is it to integrate this and below into our build?
    • Do we notice the performance improvement on different hardware, including mobile?
    • Does this or minification (below) affect shader compile/link time?

Reading

@fasiha
Copy link

fasiha commented Aug 23, 2016

This checklist makes me think there’s a tech blog post about this topic? I’m looking for some background on the topics mentioned in https://github.com/AnalyticalGraphicsInc/cesium/wiki/Screen-Space-Rendering-Details i.e., czm_getFilter etc.

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Aug 23, 2016

There's not a blog post about this, but general Cesium graphics blog posts are here: http://cesiumjs.org/blog.html#webgl

@fasiha
Copy link

fasiha commented Aug 23, 2016

Ah ok. Just to make sure: magic like this https://github.com/AnalyticalGraphicsInc/cesium/wiki/Screen-Space-Rendering-Details#example-filter-chain-scripts is just hypothetical right? This kind of post-rendering doesn’t exist right now?

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Aug 24, 2016

@fasiha that is a roadmap; it is not implemented, except for an incomplete prototype from a few years ago: https://github.com/AnalyticalGraphicsInc/cesium/compare/postprocess-hook

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

No branches or pull requests

2 participants