=> GuardHei

Illusory Walls Ahead

F+ or Deferred? Which one should I choose?


Here we go again!

Waste Of Water

It is often heard by people like me living in a wet city of water scarcity. However, fewer people really gets a figure of what is really happening just around us - the human-beings are now touching on the bottom of the earth’s well.

It is hard to realize that China is actually an extremely drought country running on a low average suppy of water per head which is a quarter of the world’s average. One of the largest in-land lake - Boyang Lake - has now turned into grassland. Not only the in-land cities are lack of water, but also the costal cites. Take Shanghai as an example, when my father was young, the water supply often cut off during the day. Many mornings my father had to eat all the bubbles made by the toothpaste and went to school because the water stopped from going out of the tube when he was brushing the teeth.

The water waste comes from everywhere. Not mentioning the industrial use, I have to admit that some contributions are done by me to the problems. I sometimes like to meditate during a shower, feeling relax as water sliding through my body. At the same time, it is how water is wasted in out daily. It can be inferred that if I cound take a shorter shower everyday, siginificant amount of water can be saved.

Another common but always ignored cause is the half-filled water bottles. Image in a hot summer day, sweats craw all over your body. You go back to your seat exhaustedly, wanting to reach of the water bottle. All of a sudden, you stop and hesitate - there are two half-filled water bottles in front of you, which one is yours? After seconds, you immediately go to the snack bar and buy another brand new one.

From the case, thousands of half-filled water bottles are thrown into trash bin each week. Considering 2-3 bottles can filled up a whole bottle, it means that hundreds of bottles of clean water is wasted directly by human. So huge!

The governments are now promoting to put a name label on the water bottle. However, there are many, many more aspects we should concern. There is no time left!

Recent Articles

Unity中自定义Coroutine的yield return返回条件

概述 当游戏开发涉及到人工智能设计的部分时,判断人物动画/寻路等这类持续一段时间而不是单帧的操作何时结束是一个能扰乱代码质量的地方。一种最简单的方法是在update()中每帧进行检验,但这种方式会使用大量的if else结构,使得代码混论难懂,耦合高,同时即使该帧没有操作正在进行也需要一个if else判断是否需要检测操作进度,消耗cpu性能。如果我们能使用coroutine协程来解决这个问题,进度检测代码就可以和主更新方法分离开了来了。然而如果仍然使用if else判断动作是否结束,...…

UnityContinue
Earlier Articles

Unity中实现简单的非连续的随时间变化而改变的光照效果

概述 最近在开发一个移动端项目,涉及到了一天之内场景的光线随时间变化而改变,比如午后的阳光和黄昏的光线就是不一样的。这可以使场景更动态,但是却对机器的机能有了更高的要求。下面我简单的说说我的实现方法。实现最简单的一种实现最简单的方法我想大家一定都能想到,用代码动态改变light组件的color属性和transform信息,从而实现连续的,真实的动态光照。这种做法的优势是十分明显的,即实现起来简单,而且是连续的,效果相对真实,但是对设备的机能要求比较苛刻,因为是实时渲染光...…

UnityContinue