Source code for pythreejs.materials.MeshLambertMaterial_autogen

from ipywidgets import (
    Widget, DOMWidget, widget_serialization, register
)
from ipywidgets.widgets.trait_types import TypedTuple
from traitlets import (
    Unicode, Int, CInt, Instance, ForwardDeclaredInstance, This, Enum,
    Tuple, List, Dict, Float, CFloat, Bool, Union, Any,
)

from .._base.Three import ThreeWidget
from .._base.uniforms import uniforms_serialization
from ..enums import *
from ..traits import *

from .Material import Material

from ..textures.Texture_autogen import Texture
from ..textures.CubeTexture_autogen import CubeTexture

[docs]@register class MeshLambertMaterial(Material): """MeshLambertMaterial Autogenerated by generate-wrappers.js See https://threejs.org/docs/#api/materials/MeshLambertMaterial """ _model_name = Unicode('MeshLambertMaterialModel').tag(sync=True) alphaMap = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) aoMap = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) aoMapIntensity = IEEEFloat(1, allow_none=False).tag(sync=True) color = Color("#ffffff", allow_none=False).tag(sync=True) combine = Enum(Operations, "MultiplyOperation", allow_none=False).tag(sync=True) emissive = Color("#000000", allow_none=False).tag(sync=True) emissiveMap = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) emissiveIntensity = IEEEFloat(1, allow_none=False).tag(sync=True) envMap = Instance(CubeTexture, allow_none=True).tag(sync=True, **widget_serialization) lightMap = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) lightMapIntensity = IEEEFloat(1, allow_none=False).tag(sync=True) map = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) morphNormals = Bool(False, allow_none=False).tag(sync=True) morphTargets = Bool(False, allow_none=False).tag(sync=True) reflectivity = IEEEFloat(1, allow_none=False).tag(sync=True) refractionRatio = IEEEFloat(0.98, allow_none=False).tag(sync=True) skinning = Bool(False, allow_none=False).tag(sync=True) specularMap = Instance(Texture, allow_none=True).tag(sync=True, **widget_serialization) wireframe = Bool(False, allow_none=False).tag(sync=True) wireframeLinecap = Unicode("round", allow_none=False).tag(sync=True) wireframeLinejoin = Unicode("round", allow_none=False).tag(sync=True) wireframeLinewidth = IEEEFloat(1, allow_none=False).tag(sync=True) type = Unicode("MeshLambertMaterial", allow_none=False).tag(sync=True)
import inspect # Include explicit signature since the metaclass screws it up MeshLambertMaterial.__signature__ = inspect.signature(MeshLambertMaterial.__init__)