Shader Practice 1
According to the tutorial, I made an effect like this:
I didn't notice the date of that tutorial which was uploaded in 2016, it mainly talks about the very original way to write shader codes in this Microsoft Studio:
I realized the function successfully, but I knew nothing about the grammar and the logic in it.In order to code like a TRUE programmer, I went to Kenneth's place(where I actually stay over 10 hours per day, at least 4 days a week) for some explanation.
Then I found I'm so out of dated!!!!!! I'm using the unity in the latest version, but didn't know how to use visual programming pipeline. It's quite a easier way to code without complex grammar and punctuation. Of course, it's not all about advantages, it makes the program light and clear, but for the logic part, it lacks of those basic default varibles and calculation, which means, you need to consider more logic thinking even more than the traditional coding way. And because of the 'light', sometimes, a simple formula has to be separate into several windows, which makes you distracted.
Anyway, it is friendly to beginners, but my experience told me it would be better to combine visual windows and the codes.
However, the tutorial is actually harder than I thought, there are so much logic involved when I tried to understand every parameter and varible in the codes. I will show how I ended this up and put some summary below as the study record.
I didn't notice the date of that tutorial which was uploaded in 2016, it mainly talks about the very original way to write shader codes in this Microsoft Studio:
I realized the function successfully, but I knew nothing about the grammar and the logic in it.In order to code like a TRUE programmer, I went to Kenneth's place(where I actually stay over 10 hours per day, at least 4 days a week) for some explanation.
Then I found I'm so out of dated!!!!!! I'm using the unity in the latest version, but didn't know how to use visual programming pipeline. It's quite a easier way to code without complex grammar and punctuation. Of course, it's not all about advantages, it makes the program light and clear, but for the logic part, it lacks of those basic default varibles and calculation, which means, you need to consider more logic thinking even more than the traditional coding way. And because of the 'light', sometimes, a simple formula has to be separate into several windows, which makes you distracted.
Anyway, it is friendly to beginners, but my experience told me it would be better to combine visual windows and the codes.
However, the tutorial is actually harder than I thought, there are so much logic involved when I tried to understand every parameter and varible in the codes. I will show how I ended this up and put some summary below as the study record.
I tried to realize the same effect with pipeline, so I need to know what these numbers mean and how to calculate them. Basically,
1. "IN.vertex.x" is the vector on X axis which is used in adjusting vector on Y axis after sine calculation.
2. "_Time[2]" means time multiply 2, controlling the wave frequency. If I change the number , it will be like
Actually, this part is not the very basic content for bignners, may I should start with graph shader on texture next time.
Comments
Post a Comment