OpenMotionLab/MotionGPT
118
1.. _lighting_guide:2 3Creating Lights4===============5 6Pyrender supports three types of punctual light:7 8- :class:`.PointLight`: Point-based light sources, such as light bulbs.9- :class:`.SpotLight`: A conical light source, like a flashlight.10- :class:`.DirectionalLight`: A general light that does not attenuate with11 distance.12 13Creating lights is easy -- just specify their basic attributes:14 15>>> pl = pyrender.PointLight(color=[1.0, 1.0, 1.0], intensity=2.0)16>>> sl = pyrender.SpotLight(color=[1.0, 1.0, 1.0], intensity=2.0,17... innerConeAngle=0.05, outerConeAngle=0.5)18>>> dl = pyrender.DirectionalLight(color=[1.0, 1.0, 1.0], intensity=2.0)19 20For more information about how these lighting models are implemented,21see their class documentation.22 