viewport shader ???
viewport shader ???
hi , how can i apply a shader to the viewport ?? help plz 
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: viewport shader ???
A shader is always applied to something being rendered. If you set a viewport and render something, the shader will be applied to everything rendered with that material inside the viewport. Maybe rephrase your question so we know what you really mean.
Re: viewport shader ???
what i mean is , i want apply the shader to all pixels on the viewport , example :
http://wpfwonderland.files.wordpress.co ... image1.png
http://wpfwonderland.files.wordpress.co ... image1.png
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: viewport shader ???
I'm still puzzeled what you mean, but maybe screen quad helps you. If you want to render a shader e.g. as a post-processing technique, you take the whole image as a texture (render to texture). Then you render a new full screen quad with your shader technique and the RTT applied as material. This leads to another full-screen render, but this time with your shader applied to the original scene. Is that what you want to achieve?
Re: viewport shader ???
Maybe it is a post processing effect?
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: viewport shader ???
If you want to learn about shaders, maybe read examples 10 and 11 first. The application of the shaders you see in the video happens on different ways. First one is a simple shader material, next ones are all post-processing, then come more material shaders, etc.
Re: viewport shader ???
thx hybrid 
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: viewport shader ???
Oh, btw, we don't have a fixed post-processing scheme integrated into the engine so far. So for this you need to use one of the post-processing examples from the forum. You should find at least a hand full of those which are still actively developed and used in the code snippets or project forum.