This works for settinganobject to being a simple color, but to make an object look realistic, you need to specify how an object appears under lights.
对于简单的为对象上色来说这样就行了,但要想让对象看起来更真实,你需要指定对象在光照下的效果。
2
You can specify whether access to anobject should be allowed by setting the security callback on the object, using the SetAccessCheckCallbacks method on object templates.