Merge pull request #81 from specklesystems/izzy/materials

feat(objects): add RenderMaterial
This commit is contained in:
izzy lyseggen
2021-04-15 17:05:05 +01:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from .base import Base
OTHER = "Objects.Other."
class RenderMaterial(Base, speckle_type=OTHER + "RenderMaterial"):
name: str = None
opacity: float = 1
metalness: float = 0
roughness: float = 1
diffuse: int = -2894893 # light gray arbg
emissive: int = -16777216 # black arbg
@@ -8,6 +8,7 @@ from specklepy.objects.base import Base, DataChunk
from specklepy.logging.exceptions import SerializationException, SpeckleException
from specklepy.transports.abstract_transport import AbstractTransport
import specklepy.objects.geometry
import specklepy.objects.other
PRIMITIVES = (int, float, str, bool)