User Tools

Site Tools


tutorials:light-modeling-light-sources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:light-modeling-light-sources [2025/01/11 20:03] – created MHtutorials:light-modeling-light-sources [2025/01/11 20:19] (current) – [AreaLight] MH
Line 59: Line 59:
 ===== AreaLight ===== ===== AreaLight =====
  
-tbd+An area light can be created using a parallelogram as base and transforming it to a light source. It will cast a diffuse distribution in the positive direction of the local z-axis of the parallelogram. Note, as for now, it does not (yet) support user defined physical light distribution. 
 + 
 +<code java> 
 +module AreaLamp extends Parallelogram() { 
 +  { 
 +    setLight(new AreaLight().(setPower(100))); 
 +    setLength(1); // 1m 
 +    setAxis(0.5f, 0, 0); 
 +  } 
 +
 +</code>
  
 ===== PhysicalLight ===== ===== PhysicalLight =====
tutorials/light-modeling-light-sources.1736622210.txt.gz · Last modified: 2025/01/11 20:03 by MH