Spaces:
Runtime error
Runtime error
Download pyrender/docs/source/examples/lighting.rst from OpenMotionLab/MotionGPT: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/pyrender/docs/source/examples/lighting.rst
- Command line
-
hf download hf://spaces/OpenMotionLab/MotionGPT/pyrender/docs/source/examples/lighting.rst
-
curl -L -o lighting.rst https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/pyrender/docs/source/examples/lighting.rst
772 Bytes
| .. _lighting_guide: | |
| Creating Lights | |
| =============== | |
| Pyrender supports three types of punctual light: | |
| - :class:`.PointLight`: Point-based light sources, such as light bulbs. | |
| - :class:`.SpotLight`: A conical light source, like a flashlight. | |
| - :class:`.DirectionalLight`: A general light that does not attenuate with | |
| distance. | |
| Creating lights is easy -- just specify their basic attributes: | |
| >>> pl = pyrender.PointLight(color=[1.0, 1.0, 1.0], intensity=2.0) | |
| >>> sl = pyrender.SpotLight(color=[1.0, 1.0, 1.0], intensity=2.0, | |
| ... innerConeAngle=0.05, outerConeAngle=0.5) | |
| >>> dl = pyrender.DirectionalLight(color=[1.0, 1.0, 1.0], intensity=2.0) | |
| For more information about how these lighting models are implemented, | |
| see their class documentation. | |