主要功能:
在上一个版本的基础上添加新的功能
增加渲染预览功能
utility FireEffect "火焰特效" width:162 height:245 ( button btn1 "火焰" pos:[12,20] width:140 height:30 bitmap bmp1 pos:[12,70] width:140 height:120 button btn2 "渲染预览" pos:[51,205] width:64 height:21 on btn1 pressed do ( sgizmo = spheregizmo radius:80 vf = fire_effect() addAtmospheric(vf) appendGizmo vf sgizmo cam = freeCamera pos:[0,180,0] target:(targetObject()) max vpt camera ) on btn2 pressed do ( view = render outputwidth:140 outputheight:120 vfb:off bmp1.bitmap = view ) )
代码运行效果:
点击“火焰”按钮
再点击“渲染预览”按钮