Unity3d Compute Shader New solution particle stacking matrix "two"

Source: Internet
Author: User

Unity3d Compute Shader New solution particle stacking matrix "two"

1.Compute shader have been out for many years, fortunately Unity3d added this feature, of course u3d in the easy development of operating platform, Compute shader in the u3d is quite easy to achieve.

2. In addition to compute Shader, there are Vertex shader,geometry shader,fragment Shader; Tesselation Shader,domain shader,hull Shader, if you think there is a kind of want to learn or hungry instead of tired, you will definitely have cow X, then please first brother to worship.

Note: Please do not copy me evil!!! Or cut off your little xxx.
http://blog.csdn.net/baidu_26153715/article/details/45674547-na ...
You can reprint ah, please leave Cheung before turning. You're welcome...

    • Color cube


      Remember 2015.3.0 that day, I used the whole body strength search compute shader information, did not find it a little useful clues, at that time Niang to sell Meng, received is what disgusting news, so with the help of the next door old Wang VPN artifact, Google found an article unity Computeshader's article http://kylehalladay.com/blog/tutorial/2014/06/27/ Compute-shaders-are-nifty.html (That's it, you poke it in seconds), and then I'll just wash and sleep.

    • Cube Original appearance

      I was in the Microsoft Official website, because this is DX!!, so into the official website stroll, and then accidentally came out, "Come out"! Right!.. That was how it came out, because the notebook touchpad was really TMD's wit, wit's touch to ← it. In the end, I went to bed.

    • The cube crazy move?

I started a little calm, for why this, computeshader so bully, because I have seen this picture of the rhythm of not less than 5 times/day, this card is dead, of course, I finally understand, because I always take the thought of test-oriented education as a simple digital coordinates, So I think Microsoft is so stupid B, get a piece of math Xiang, he is actually in Euclid coordinates space within a lot of small squares (thread group), plus their own sv_groupthreadid is not the space coordinates of each thread? (Exam-oriented education, AH, it is a TMD simple things can also make a self-mathematical good person La Xiang)

Key technology implementations
    1. The color of the cube

      How many dimensions of UV coordinates do you think this is? (This is the O.UV)
      , if the previous understanding, then 64 meaning is to set the UV (0,1) interval.

      This one! is the legendary UV coordinate color.

    2. Point position of the cube

      If you understand before, then the location of the point is not Euclidean coordinates?
      The point is, you have to have the coordinates of each element in the array, like an array, to buffer.
      So how does an element of one traverse?
      If you understand it, that's right, but Sv_groupindex is a point number within a group.
      The problem is, what we want here is the number of all points of authority, hahaha, I don't tell you.
      However, if your dispatch is (1,1,1), then Sv_groupindex is equivalent to the unique number of all points.

    3. Move the cube? Can aunt?

I just move, it's so capricious!

 C#中的任性

 Compute Shader中的任性

Of course, be sure to follow the temperament, how to move the way to move.

To a partner who likes to watch crazy code.
    1. Use in C #
    2. Use in Computeshader
    3. Use in Shader

Unity3d Compute Shader New solution particle stacking matrix "two"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.