This works for setting an object to being a simple color, but to make an object look realistic, you need to specify how an object appears under lights.
对于简单的为对象上色来说这样就行了,但要想让对象看起来更真实,你需要指定对象在光照下的效果。
You can specify whether access to an object should be allowed by setting the security callback on the object, using the SetAccessCheckCallbacks method on object templates.
你可以通过使用对象模版的SetAccessCheckCallbacks方法设置对象的安全回调函数,以此来指定是否允许访问该对象。
The following code provides an example of creating a template for the global object and setting the built-in global functions.
下面的代码提供了一个为全局对象创建模板并且设置全局函数的例子。
应用推荐