[Bf-extensions-cvs] [53e11f65] master: pre 2.8 API changes Pass 7
Maurice Raybaud
noreply at git.blender.org
Sun May 19 21:23:04 CEST 2019
Commit: 53e11f6552dfd2defbf2b5c4fd1621d3dfdb6129
Author: Maurice Raybaud
Date: Sun May 19 21:22:57 2019 +0200
Branches: master
https://developer.blender.org/rBA53e11f6552dfd2defbf2b5c4fd1621d3dfdb6129
pre 2.8 API changes Pass 7
===================================================================
M render_povray/__init__.py
M render_povray/render.py
M render_povray/shading.py
M render_povray/ui.py
===================================================================
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index d3b95b34..932d0501 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -556,6 +556,379 @@ class RenderPovSettingsScene(PropertyGroup):
###############################################################################
# Material POV properties.
###############################################################################
+class MaterialTextureSlot(PropertyGroup):
+
+ alpha_factor: FloatProperty(
+ name="Alpha",
+ description="Amount texture affects alpha",
+ default = 0.0)
+
+ ambient_factor: FloatProperty(
+ name="",
+ description="Amount texture affects ambient",
+ default = 0.0)
+
+ bump_method: EnumProperty(
+ name="",
+ description="Method to use for bump mapping",
+ items=(("BUMP_ORIGINAL", "Bump Original", ""),
+ ("BUMP_COMPATIBLE", "Bump Compatible", ""),
+ ("BUMP_DEFAULT", "Bump Default", ""),
+ ("BUMP_BEST_QUALITY", "Bump Best Quality", "")),
+ default="BUMP_ORIGINAL")
+
+ bump_objectspace: EnumProperty(
+ name="",
+ description="Space to apply bump mapping in",
+ items=(("BUMP_VIEWSPACE", "Bump Viewspace", ""),
+ ("BUMP_OBJECTSPACE", "Bump Objectspace", ""),
+ ("BUMP_TEXTURESPACE", "Bump Texturespace", "")),
+ default="BUMP_VIEWSPACE")
+
+ density_factor: FloatProperty(
+ name="",
+ description="Amount texture affects density",
+ default = 0.0)
+
+ diffuse_color_factor: FloatProperty(
+ name="",
+ description="Amount texture affects diffuse color",
+ default = 0.0)
+
+ diffuse_factor: FloatProperty(
+ name="",
+ description="Amount texture affects diffuse reflectivity",
+ default = 0.0)
+
+ displacement_factor: FloatProperty(
+ name="",
+ description="Amount texture displaces the surface",
+ default = 0.0)
+
+ emission_color_factor: FloatProperty(
+ name="",
+ description="Amount texture affects emission color",
+ default = 0.0)
+
+ emission_factor: FloatProperty(
+ name="",
+ description="Amount texture affects emission",
+ default = 0.0)
+
+ emit_factor: FloatProperty(
+ name="",
+ description="Amount texture affects emission",
+ default = 0.0)
+
+ hardness_factor: FloatProperty(
+ name="",
+ description="Amount texture affects hardness",
+ default = 0.0)
+
+ mapping: EnumProperty(
+ name="",
+ description="",
+ items=(("FLAT", "Flat", ""),
+ ("CUBE", "Cube", ""),
+ ("TUBE", "Tube", ""),
+ ("SPHERE", "Sphere", "")),
+ default="FLAT")
+
+ mapping_x: EnumProperty(
+ name="",
+ description="",
+ items=(("NONE", "", ""),
+ ("X", "", ""),
+ ("Y", "", ""),
+ ("Z", "", "")),
+ default="NONE")
+
+ mapping_y: EnumProperty(
+ name="",
+ description="",
+ items=(("NONE", "", ""),
+ ("X", "", ""),
+ ("Y", "", ""),
+ ("Z", "", "")),
+ default="NONE")
+
+ mapping_z: EnumProperty(
+ name="",
+ description="",
+ items=(("NONE", "", ""),
+ ("X", "", ""),
+ ("Y", "", ""),
+ ("Z", "", "")),
+ default="NONE")
+
+ mirror_factor: FloatProperty(
+ name="",
+ description="Amount texture affects mirror color",
+ default = 0.0)
+
+ normal_factor: FloatProperty(
+ name="",
+ description="Amount texture affects normal values",
+ default = 0.0)
+
+ normal_map_space: EnumProperty(
+ name="",
+ description="Sets space of normal map image",
+ items=(("CAMERA", "Camera", ""),
+ ("WORLD", "World", ""),
+ ("OBJECT", "Object", ""),
+ ("TANGENT", "Tangent", "")),
+ default="CAMERA")
+
+ object: StringProperty(
+ name="Object",
+ description="Object to use for mapping with Object texture coordinates",
+ default ="")
+
+ raymir_factor: FloatProperty(
+ name="",
+ description="Amount texture affects ray mirror",
+ default = 0.0)
+
+ reflection_color_factor: FloatProperty(
+ name="",
+ description="Amount texture affects color of out-scattered light",
+ default = 0.0)
+
+ reflection_factor: FloatProperty(
+ name="",
+ description="Amount texture affects brightness of out-scattered light",
+ default = 0.0)
+
+ scattering_factor: FloatProperty(
+ name="",
+ description="Amount texture affects scattering",
+ default = 0.0)
+
+ specular_color_factor: FloatProperty(
+ name="",
+ description="Amount texture affects specular color",
+ default = 0.0)
+
+ specular_factor: FloatProperty(
+ name="",
+ description="Amount texture affects specular reflectivity",
+ default = 0.0)
+
+ texture_coords: EnumProperty(
+ name="",
+ description="",
+ items=(("GLOBAL", "Global", ""),
+ ("OBJECT", "Object", ""),
+ ("UV", "UV", ""),
+ ("ORCO", "Original Coordinates", ""),
+ ("STRAND", "Strand", ""),
+ ("STICKY", "Sticky", ""),
+ ("WINDOW", "Window", ""),
+ ("NORMAL", "Normal", ""),
+ ("REFLECTION", "Reflection", ""),
+ ("STRESS", "Stress", ""),
+ ("TANGENT", "Tangent", "")),
+ default="GLOBAL")
+
+ translucency_factor: FloatProperty(
+ name="",
+ description="Amount texture affects translucency",
+ default = 0.0)
+
+ transmission_color_factor: FloatProperty(
+ name="",
+ description="Amount texture affects result color after light has been scattered/absorbed",
+ default = 0.0)
+
+ use: BoolProperty(
+ name="",
+ description="Enable this material texture slot",
+ default = False)
+
+ use_from_dupli: BoolProperty(
+ name="",
+ description="Dupli’s instanced from verts, faces or particles, inherit texture coordinate from their parent",
+ default = False)
+
+ use_from_original: BoolProperty(
+ name="",
+ description="Dupli’s derive their object coordinates from the original objects transformation",
+ default = False)
+
+ use_map_alpha: BoolProperty(
+ name="",
+ description="Causes the texture to affect the alpha value",
+ default = False)
+
+ use_map_ambient: BoolProperty(
+ name="",
+ description="Causes the texture to affect the value of ambient",
+ default = False)
+
+ use_map_color_diffuse: BoolProperty(
+ name="",
+ description="Causes the texture to affect basic color of the material",
+ default = False)
+
+ use_map_color_emission: BoolProperty(
+ name="",
+ description="Causes the texture to affect the color of emission",
+ default = False)
+
+ use_map_color_reflection: BoolProperty(
+ name="",
+ description="Causes the texture to affect the color of scattered light",
+ default = False)
+
+ use_map_color_spec: BoolProperty(
+ name="",
+ description="Causes the texture to affect the specularity color",
+ default = False)
+
+ use_map_color_transmission: BoolProperty(
+ name="",
+ description="Causes the texture to affect the result color after other light has been scattered/absorbed",
+ default = False)
+
+ use_map_density: BoolProperty(
+ name="",
+ description="Causes the texture to affect the volume’s density",
+ default = False)
+
+ use_map_diffuse: BoolProperty(
+ name="",
+ description="Causes the texture to affect the value of the materials diffuse reflectivity",
+ default = False)
+
+ use_map_displacement: BoolProperty(
+ name="",
+ description="Let the texture displace the surface",
+ default = False)
+
+ use_map_emission: BoolProperty(
+ name="",
+ description="Causes the texture to affect the volume’s emission",
+ default = False)
+
+ use_map_emit: BoolProperty(
+ name="",
+ description="Causes the texture to affect the emit value",
+ default = False)
+
+ use_map_hardness: BoolProperty(
+ name="",
+ description="Causes the texture to affect the hardness value",
+ default = False)
+
+ use_map_mirror: BoolProperty(
+ name="",
+ description="Causes the texture to affect the mirror color",
+ default = False)
+
+ use_map_normal: BoolProperty(
+ name="",
+ description="Causes the texture to affect the rendered normal",
+ default = False)
+
+ use_map_raymir: BoolProperty(
+ name="",
+ description="Causes the texture to affect the ray-mirror value",
+ default = False)
+
+ use_map_reflect: BoolProperty(
+ name="",
+ description="Causes the texture to affect the reflected light’s brightness",
+ default = False)
+
+ use_map_scatter: BoolProperty(
+ name="",
+ description="Causes the
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list