tutorials:light-modeling-light-sources
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tutorials:light-modeling-light-sources [2025/06/02 18:56] – [SpotLight] MH | tutorials:light-modeling-light-sources [2025/06/02 19:09] (current) – MH | ||
|---|---|---|---|
| Line 95: | Line 95: | ||
| Please refer to [[tutorials: | Please refer to [[tutorials: | ||
| + | |||
| + | |||
| + | ===== Light colour ===== | ||
| + | |||
| + | To define the colour of the emitted light source, the function // | ||
| + | |||
| + | <code java> | ||
| + | protected void init () [ | ||
| + | Axiom ==> | ||
| + | LightNode.(setLight(new SpotLight().( | ||
| + | setVisualize(true), | ||
| + | setNumberofrays(150), | ||
| + | setRaylength(1.1), | ||
| + | setColor(new RGBColor(1, | ||
| + | ))); | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
tutorials/light-modeling-light-sources.1748883417.txt.gz · Last modified: 2025/06/02 18:56 by MH
