Godot Engine 3.2Beta
效果图自发光材质的效果需要依赖GIProbe
素材准备在Blender中制作了一个简单的屋子顺便把后头也导出来了
猴头使用的是自带的Spatial Material
在猴头的MeshInstance
中把Use In Bake Light
打开
在猴头的材质中把Emission
打开并设置自发光的颜色
用GIProbe
烘焙环境光
顺便把方块的代码贴上,几天不用Godot,API就忘了
extends MeshInstance
func _process(delta):
rotation_degrees.x += delta*100.0