Some shader questions

  • Is it possible to save values made from both vertex shader or pixel shader?
  • Is it possible to use vertex shaders on cameras?
  1. Nope. They get rendered out via the GPU and are (so far as I can tell) inaccessable
    Things like vertex positions and colours are accessible from python, so depending on what you want to do, the data you want may be available.

  2. A camera has no vertices. Not quite sure what you mean here? You may want to find out about 2D filters, but they are more similar to fragment shaders.

@sdfgeoff I want to render/get gl_ModelViewProjectionMatrix for whole objects in the scene, and store/save the value for later purpose.