前段时间经常渲染白模线框的图,写了这个脚本方便工作,后来又加了中英文适配,今天贴上来.
fn YY_edgestex =
(
vr = renderers.current
case of
(
(vr材质 != undefined) : (mat = vr材质())
(vr_材质 != undefined) : (mat = vr_材质())
(VRayMtl != undefined) : (mat = VRayMtl())
)
mat
mat.diffuse = color
case of
(
(VR边纹理 != undefined):(mat.texmap_diffuse = VR边纹理())
(VR_边纹理 != undefined):(mat.texmap_diffuse = VR_边纹理())
(VRayEdgesTex != undefined):(mat.texmap_diffuse = VRayEdgesTex())
)
mat.texmap_diffuse.pixelWidth = 0.5
mat.texmap_diffuse.edgesColor = color
vr.options_overrideMtl_on = true
vr.options_overrideMtl_mtl = mat
)