pbr_utils.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:blendergltf 作者: Kupoman 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号