标签:
前段时间经常渲染白模线框的图,写了这个脚本方便工作,后来又加了中英文适配,今天贴上来.
fn YY_edgestex = ( vr = renderers.current case of ( (vr材质 != undefined) : (mat = vr材质()) (vr_材质 != undefined) : (mat = vr_材质()) (VRayMtl != undefined) : (mat = VRayMtl()) ) mat mat.diffuse = color 255 255 255 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 0 0 0 vr.options_overrideMtl_on = true vr.options_overrideMtl_mtl = mat )
标签:
原文地址:http://www.cnblogs.com/3dxy/p/4630578.html