def draw(self, context):
settings = context.material.pbr_export_settings
self.layout.label('Base Color:')
box = self.layout.box()
box.prop(settings, 'base_color_factor', text='Factor')
box.prop_search(settings, 'base_color_texture', bpy.data, 'textures')
self.layout.label('Roughness:')
box = self.layout.box()
box.prop(settings, 'metallic_factor', text='Metallic')
box.prop(settings, 'roughness_factor', text='Factor')
box.prop_search(settings, 'metal_roughness_texture', bpy.data, 'textures')
self.layout.label('Emissive:')
box = self.layout.box()
box.prop(settings, 'emissive_factor', text='Factor')
box.prop_search(settings, 'emissive_texture', bpy.data, 'textures')
self.layout.prop_search(settings, 'normal_texture', bpy.data, 'textures')
self.layout.prop_search(settings, 'occlusion_texture', bpy.data, 'textures')
评论列表
文章目录