Unity uses Shader to make glass windows in the rain learning notes
Unity uses Shader to make glass windows in the rain learning notes
Blur background, simulate fog
Make glass transparent
Handwriting Fuzzy Algorithm
https://www.youtube.com/watch?v=EBrAdahFtuo Watch the notes after the oil pipe god's tutorial.
Blur background, simulate fog
In the textured Inspec ...
Posted by crazy_carl on Mon, 03 Feb 2020 19:30:26 -0800
Js-w3school (2020.2.3) [js array]
1.JavaScript arrays are used to store multiple values in a single variable.
2. Create array:
Array text method:
var cars = ["Saab", "Volvo", "BMW"];
Or use the keyword new
var cars = new Array("Saab", "Volvo", "BMW");
3. We refer to an array element by referring to index number (subscript)
4. Through ...
Posted by gregor63 on Mon, 03 Feb 2020 03:30:13 -0800
The screenshot function of unity shader, the common cginc, the multi-component and the basic optimization of mobile platform
GrabPass
Use screen capture channel
GrabPass [] or GrabPass {"texture name"};
If you do not specify a texture name, the texture will be generated into the "GrabTexture" by default, and the subsequent Pass channel uses this variable to obtain the screen capture texture
Scene:
Code
Sh ...
Posted by gibs on Fri, 31 Jan 2020 23:44:59 -0800
Use of JavaScript document fragments
In JavaScript, document fragment is independent of DOM tree and exists in memory. It is a blank document fragment at the beginning of creation. We can use createDocumentFragment to create it
let fragment = document.createDocumentFragment();
The operations on document fragments, including inserting node ...
Posted by pouncer on Sun, 26 Jan 2020 21:10:30 -0800
Spring Road (17) - Configure Spring MVC with annotations
background
The previous article details the process of configuring SpringMVC using xml, rather than specifying a Dispatcher Servlet, specifying a container configuration file, and then writing controllers and views.
Similar to using annotation configurations, we have a class responsible for specifying ...
Posted by Phirus on Sat, 25 Jan 2020 16:46:23 -0800
IllegalStateException: This operation cannot be performed after onSaveInstanceState using ViewPager
I get user reports from apps on the market, but the following exceptions occur:
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1109)
at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:399)
at android.app.A ...
Posted by cosmo7 on Wed, 22 Jan 2020 22:27:36 -0800
android view statusBar immersive
When it comes to the immersive experience of Android status bar, it has to be said that this is the pot left by the code designer to the developers. The version system api is fragmented and inconsistent. The subsequent versions are not compatible with the previous versions, so developers need to be c ...
Posted by ineedhelp512 on Tue, 21 Jan 2020 23:06:47 -0800
Android critical instance (6) use of toolbar menu items
Selection of menu bar symbols
There are many menu symbols in Android studio. Select drawable
You can choose any symbol you want
code implementation
public class CrimeListFragment extends Fragment {
public static final String SUBTITLE = "subtitle";
private RecyclerView mRecyclerView;
private CrimeAdpater mCr ...
Posted by bsfischer on Tue, 21 Jan 2020 08:51:04 -0800
Details of EventBus source code
When using EventBus, we first need to register EventBus:
EventBus.getDefault().register(this);
So let's use this code as an entry to explore the secrets of EventBus step by step!
Let's first look at the getDefault() method:
static volatile EventBus defaultInstance;
public static EventBus getDefa ...
Posted by artic on Mon, 20 Jan 2020 02:14:51 -0800
Understand reactive programming and analyze LiveData deeply
/Start/
This article mainly analyzes the source code of LiveData. This article uses the source code analysis of Android SDK 29.
/Definition/
LiveData is a kind of observable data storage class, which has life cycle awareness and follows the life cycle of application components (e.g. Activ ...
Posted by rowantrimmer on Sat, 18 Jan 2020 21:15:03 -0800