tutorials:light-modeling-light-sources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:light-modeling-light-sources [2025/01/11 20:19] – [AreaLight] MH | tutorials:light-modeling-light-sources [2025/06/02 19:09] (current) – MH | ||
---|---|---|---|
Line 51: | Line 51: | ||
===== SpotLight ===== | ===== SpotLight ===== | ||
- | As a specialization of a // | + | As a specialization of a // |
+ | |||
+ | To control the opening angle of the // | ||
+ | |||
+ | <code java> | ||
+ | protected void init () [ | ||
+ | Axiom ==> | ||
+ | LightNode.(setLight(new SpotLight().( | ||
+ | setInnerAngle(0.2), | ||
+ | setVisualize(true), | ||
+ | setNumberofrays(150), | ||
+ | setRaylength(0.5) | ||
+ | ))) | ||
+ | ; | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | Below, the effect of different inner and outher angles can be seen: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Note: Make sure that the values for the inner angle do not extend the outer angle. | ||
===== DirectionalLight ===== | ===== DirectionalLight ===== | ||
Line 73: | Line 94: | ||
===== PhysicalLight ===== | ===== PhysicalLight ===== | ||
- | tbd | + | 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.1736623187.txt.gz · Last modified: 2025/01/11 20:19 by MH