[UnityShader] bump mapping

Another common application of texture is bump mapping. The purpose is to use a texture to modify the normal of the model surface. Make the model look 'bumpy'. There are two main methods: one is height texture and the other is normal texture. Here we mainly introduce normal texture. Since the component range in the normal direction is [- 1,1], b ...

Posted on Thu, 02 Dec 2021 17:51:12 -0500 by cs1h

RenderTexture of CommandBuffer learning

RenderTexture of CommandBuffer learning 1, What is RenderTexture A special Texture type in Unity. The provider inherits Texture Texture objects are divided into two types by visitors: One is that the server side is created in the video memory and accessed by the GPU The other is that the client side is created in memory and accesse ...

Posted on Sun, 28 Nov 2021 02:01:44 -0500 by Madzz

Draw rectangular, rectangular, circular, and circular boxes using shader (WebGL-Shader Development Foundation 02)

1. Draw a rectangle Last article learned how to draw a line, now learn how to draw a surface. Start with drawing a rectangle. In fact, the idea of drawing a rectangle is the same as that of drawing a line, except that the area restricted by drawing a line is narrower and the area restricted by drawing a rectangle is wider. Let's start with ...

Posted on Tue, 09 Nov 2021 12:20:22 -0500 by no3dfx

Introduction to graphics: image binarization

       Recently, the project has done image processing and grid processing. By the way, I'll write a few blogs.        Binarization treatment        In image processing, the general image (color image) carries too much information, which is not suitable fo ...

Posted on Sun, 31 Oct 2021 16:05:34 -0400 by jonnyw6969