| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| How do you make shader effects | |
|---|---|
| Tweet Topic Started: Jan 1 2013, 06:12 PM (154 Views) | |
| MisuMen | Jan 1 2013, 06:12 PM Post #1 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
I want to learn how to make shader effects but I don't understand them. How do you create shader effects? What steps do I have to do in order to create a simple effect in my game with shaders? |
![]() |
|
| Despellanion | Jan 1 2013, 06:39 PM Post #2 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What kind of shader do you want? Some are a bit more complex than others. |
![]() |
|
| Monty | Jan 1 2013, 06:59 PM Post #3 |
|
Forum Leader
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Here's something I put together and never got around to sharing. Not really a tutorial, but it should help a little. Try to use it to pick apart some of the simple shaders in the tech demo and in the various shader examples you can find. Vertex shaders: The goal of these is to take info about the vertex whose info is stored in v0, v1, v2, v3, etc. (each of these holds different info about the vertex), and use this in combination with info from the .ufx file (like where the camera is) found in c0, c1, c2, c3, etc (you set these up in the UFX file) and you combine them using temporary registers, r0, r1, r2, r3 etc (they are your variables) to finally plop values into oPos, the screen space vertex position, oD0, the color, oT0,oT1, oT2, oT3, the texture coordinates. Try confining yourself to not using pixel shaders at first. That's my advice. Edited by Monty, Jan 1 2013, 07:06 PM.
|
![]() |
|
| Dr. Best | Jan 1 2013, 11:06 PM Post #4 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You may also want to have a look at Solid Shader Tool. It won't help you with the *.ufx file, but can be helpful for the shader itself. |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



Shader_Programming_Guide.rtf (11.46 KB)
2:21 AM Jul 11