The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: Farabi on August 06, 2009, 12:16:26 PM

Title: What is Vertex Shader?
Post by: Farabi on August 06, 2009, 12:16:26 PM
I saw hitchkr vertex shadow example, and the fish which is not animated is moving just like a fish.
How to do that? Is that what called vertex shader or what?
Title: Re: What is Vertex Shader?
Post by: xanatose on August 06, 2009, 01:42:03 PM
Vertex Shader : A program that runs in the GPU and affects the attributes of a vertex. Since its run in the GPU, it frees the CPU to do other things.

Fragment Shader : A program that runs in the GPU and affects how each individual pixel is drawn. (but not the position). Doing this on the CPU would be slow as hell.
Title: Re: What is Vertex Shader?
Post by: Farabi on August 06, 2009, 02:03:21 PM
Quote from: xanatose on August 06, 2009, 01:42:03 PM
Vertex Shader : A program that runs in the GPU and affects the attributes of a vertex. Since its run in the GPU, it frees the CPU to do other things.

Fragment Shader : A program that runs in the GPU and affects how each individual pixel is drawn. (but not the position). Doing this on the CPU would be slow as hell.

Do you know any psh or vsh editor or how it been created?
Title: Re: What is Vertex Shader?
Post by: xanatose on August 06, 2009, 02:10:10 PM
The vertex shaders and the fragment shaders are just text files.

As for editors.
Shader Designer http://www.typhoonlabs.com/
ATI Render Monkey, for OpenGL and D3D shaders http://developer.amd.com/GPU/RENDERMONKEY/Pages/default.aspx
Nvidia FX Composer for D3D shaders: http://developer.nvidia.com/object/fx_composer_home.html
Title: Re: What is Vertex Shader?
Post by: Farabi on August 07, 2009, 04:13:40 AM
Quote from: xanatose on August 06, 2009, 02:10:10 PM
The vertex shaders and the fragment shaders are just text files.

As for editors.
Shader Designer http://www.typhoonlabs.com/
ATI Render Monkey, for OpenGL and D3D shaders http://developer.amd.com/GPU/RENDERMONKEY/Pages/default.aspx
Nvidia FX Composer for D3D shaders: http://developer.nvidia.com/object/fx_composer_home.html


Okay thanks.