-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates #103
Updates #103
Conversation
a0ffeb4
to
3899043
Compare
project_file_writer.py
Outdated
@@ -1340,6 +1354,55 @@ def __emit_diffuse_btdf(self, material, bsdf_name, scene, layer=None, node=None) | |||
self.__emit_parameter("transmittance_multiplier", transmittance) | |||
self.__close_element("bsdf") | |||
|
|||
#------------------------ | |||
#Write Sheen BRDF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert space after #
properties/materials.py
Outdated
max=1.0, | ||
update=refresh_preview) | ||
|
||
sheen_reflectance_use_tex = bpy.props.BoolProperty(name="", description="Use a texture to influence sheen reflectance", default=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put one parameter per line (everywhere in this file)?
properties/materials.py
Outdated
@@ -811,9 +854,36 @@ class AppleseedMatLayerProps(bpy.types.PropertyGroup): | |||
description="Specular BTDF transmittance multiplier", default=1.0, min=0.0, max=1.0, | |||
update=refresh_preview) | |||
|
|||
spec_fresnel_multiplier = bpy.props.FloatProperty(name="Fresnel Multiplier", | |||
description="Fresnel multiplier", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation.
ui/materials.py
Outdated
@@ -1116,9 +1166,29 @@ def draw(self, context): | |||
|
|||
layout.prop(current_layer, "spec_btdf_trans_mult") | |||
|
|||
# fresnel multiplier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fresnel -> Fresnel (https://en.wikipedia.org/wiki/Augustin-Jean_Fresnel)
I fixed the areas you specifically mentioned. As far as the 'one parameter per line' that's going to be a major project as there are hundreds of parameters that will need to be updated. |
Add additional controls to Specular BTDF
Add Sheen BRDF
Redo material name display