Minecraft如何执行照明? [英] How does Minecraft perform lighting?
本文介绍了Minecraft如何执行照明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我唯一熟悉的模型是漫射照明,但是看起来比这复杂得多.
The only model I'm familiar with is diffuse lighting but this look way more complicated than that.
推荐答案
每个正方形的亮度从15到0.每个级别比其上的级别低20%.如果一个正方形包含一个光源,它将获得该光源的亮度,否则它将比最亮的邻居少一个.
Each square has a light level from 15 to 0. Each level is 20% less than the level above it. If a square contains a light source it gets the luminosity of that light source, otherwise it gets one less than the brightest neighbor.
阳光很特殊,没有垂直衰减.
Sunlight is special, it suffers no vertical attenuation.
这篇关于Minecraft如何执行照明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文