This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:tutorials:shaders:getting_started_with_shaders [2020/08/05 04:20 (5 years ago)] – created sausage | en:tutorials:shaders:getting_started_with_shaders [2020/08/31 05:37 (5 years ago)] (current) – ↷ Links adapted because of a move operation sausage | ||
---|---|---|---|
Line 4: | Line 4: | ||
This guide is designed to help you to get some simple shaders quickly working in Orx in order to build confidence using them. I will touch on a few key concepts but I recommend afterwards using a guide like [[https:// | This guide is designed to help you to get some simple shaders quickly working in Orx in order to build confidence using them. I will touch on a few key concepts but I recommend afterwards using a guide like [[https:// | ||
- | Let's start as usual by creating a default project using the [[en: | + | Let's start as usual by creating a default project using the [[en: |
===== Setup ===== | ===== Setup ===== | ||
Line 54: | Line 54: | ||
Run this and you will find the logo is replaced by a gradient texture from red to yellow. | Run this and you will find the logo is replaced by a gradient texture from red to yellow. | ||
- | {{ :en:tutorials: | + | {{ tutorials: |
Nice and simple, using only two lines of shader code. | Nice and simple, using only two lines of shader code. | ||
Line 86: | Line 86: | ||
Run this and you will see the right hand side of the texture fading out, and the blue background starting to show through. | Run this and you will see the right hand side of the texture fading out, and the blue background starting to show through. | ||
- | {{ :en:tutorials: | + | {{ tutorials: |
So far, we have made the shader repaint every pixel and nothing of the original underlying texture has been preserved. What if we could blend or mix our colours with the original '' | So far, we have made the shader repaint every pixel and nothing of the original underlying texture has been preserved. What if we could blend or mix our colours with the original '' | ||
Line 110: | Line 110: | ||
This time, we're using the '' | This time, we're using the '' | ||
- | {{ :en:tutorials: | + | {{ tutorials: |
That's pretty cool right? | That's pretty cool right? | ||
Line 130: | Line 130: | ||
</ | </ | ||
- | {{ :en:tutorials: | + | {{ tutorials: |
Really effective! | Really effective! | ||
Line 136: | Line 136: | ||
That will do for the moment. Hopefully that gets you pretty keen for shaders and what simple colour effects are possible. | That will do for the moment. Hopefully that gets you pretty keen for shaders and what simple colour effects are possible. | ||
- | In the next article, I'll cover the use of '' | + | In the [[en: |