Texture shader generation
AssigneeLemon Inc.
InventorsKexin Lin, Qianyi Li
Life of this patent
Estimating the term…
Abstract
A method for generating a texture shader is described. A user interface for editing the texture shader is displayed. The texture shader has a plurality of parameters that affect rendering characteristics of the texture shader. Displaying includes displaying a widget for at least one parameter of the plurality of parameters, and applying the texture shader to an input image using current values of the plurality of parameters to generate a preview of the texture shader. A user input that changes a value of a parameter of the at least one parameter is received via at least one widget. The texture shader is applied to the input image using the changed value of the parameter to generate the preview of the texture shader. The preview of the texture shader applied to the input image is displayed.
Claims14
A method for generating a texture shader, the method comprising:
- reading a configuration file for the texture shader, the configuration file identifying a plurality of parameters that affect rendering characteristics of the texture shader;
- generating a user interface for editing the texture shader based on the configuration file, wherein generating the user interface comprises:
- for each of the plurality of parameters that is adjustable, determining a widget type for the adjustable parameter, and
- generating a corresponding widget of the determined widget type for each of the adjustable parameters;
- displaying the user interface for editing the texture shader, including:
- displaying the generated widget for each adjustable parameter of the plurality of parameters, and
- applying the texture shader to an input image using current values of the plurality of parameters to generate a preview of the texture shader;
- receiving, via at least one widget for the adjustable parameters, a user input that changes a value of a corresponding adjustable parameter of the plurality of parameters;
- applying the texture shader to the input image using the changed value of the adjustable parameter to generate the preview of the texture shader;
- displaying the preview of the texture shader applied to the input image;
- receiving, via the at least one widget for the adjustable parameters, another user input that activates a facial occlusion widget;
- applying the texture shader to the input image using the changed value of the adjustable parameter to generate a second preview of the texture shader, wherein the facial occlusion widget that, when activated, omits identified facial regions of the input image from application of the texture shader, the identified facial regions not being obscured by the effects of the texture shader;
- and
- displaying the second preview of the texture shader applied to the input image.
A system for generating a texture shader, the system comprising:
- one or more hardware processors configured by machine-readable instructions to:
- read a configuration file for the texture shader, the configuration file identifying a plurality of parameters that affect rendering characteristics of the texture shader;
- generate a user interface for editing the texture shader based on the configuration file, wherein generating the user interface comprises:
- for each of the plurality of parameters that is adjustable, determining a widget type for the adjustable parameter, and
- generating a corresponding widget of the determined widget type for each of the adjustable parameters;
- display the user interface for editing the texture shader, including
- displaying the generated widget for each adjustable parameter of the plurality of parameters, and
- applying the texture shader to an input image using current values of the plurality of parameters to generate a preview of the texture shader;
- receive, via at least one widget for the adjustable parameters, a user input that changes a value of a corresponding adjustable parameter of the plurality of parameters;
- apply the texture shader to the input image using the changed value of the adjustable parameter to generate the preview of the texture shader;
- display the preview of the texture shader applied to the input image;
- receive, via the at least one widget for the adjustable parameters, another user input that activates a facial occlusion widget;
- apply the texture shader to the input image using the changed value of the adjustable parameter to generate a second preview of the texture shader, wherein the facial occlusion widget that, when activated, omits identified facial regions of the input image from application of the texture shader, the identified facial regions not being obscured by the effects of the texture shader;
- and
- display the second preview of the texture shader applied to the input image.
A non-transitory computer-readable storage medium comprising instructions being executable by one or more processors, that when executed by the one or more processors, cause the one or more processors to:
- read a configuration file for the texture shader, the configuration file identifying a plurality of parameters that affect rendering characteristics of the texture shader;
- generate a user interface for editing the texture shader based on the configuration file, wherein generating the user interface comprises:
- for each of the plurality of parameters that is adjustable, determining a widget type for the adjustable parameter, and
- generating a corresponding widget of the determined widget type for each of the adjustable parameters;
- display the user interface for editing a texture shader, including
- displaying the generated widget for each adjustable parameter of the plurality of parameters, and
- applying the texture shader to an input image using current values of the plurality of parameters to generate a preview of the texture shader;
- receive, via at least one widget for the adjustable parameters, a user input that changes a value of a corresponding adjustable parameter of the plurality of parameters;
- apply the texture shader to the input image using the changed value of the adjustable parameter to generate the preview of the texture shader;
- display the preview of the texture shader applied to the input image;
- receive, via the at least one widget for the adjustable parameters, another user input that activates a facial occlusion widget;
- apply the texture shader to the input image using the changed value of the adjustable parameter to generate a second preview of the texture shader, wherein the facial occlusion widget that, when activated, omits identified facial regions of the input image from application of the texture shader, the identified facial regions not being obscured by the effects of the texture shader;
- and
- display the second preview of the texture shader applied to the input image.
Dependencies are inferred from the claim text.