<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ALight_Group</id>
	<title>Reference:Light Group - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ALight_Group"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Light_Group&amp;action=history"/>
	<updated>2026-04-04T13:44:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=9011&amp;oldid=prev</id>
		<title>Jholsenback: indexentries fixes</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=9011&amp;oldid=prev"/>
		<updated>2016-12-16T18:18:02Z</updated>

		<summary type="html">&lt;p&gt;indexentries fixes&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:18, 16 December 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Light Sources]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Light Sources]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:global_lights}} &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:light_group, keyword}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:keyword, light_group}} &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:light_source, light_group}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:keyword, light_source}} &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:global_lights, light_group}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#indexentry:keyword, global_lights}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Light groups make it possible to create a &amp;lt;code&amp;gt;union&amp;lt;/code&amp;gt; of light sources and objects, where the objects in the group are illuminated by the lights in the group or, if so desired, by the global light sources as well. The light sources in the group can &amp;lt;em&amp;gt;only&amp;lt;/em&amp;gt; illuminate the objects that are in the group, this also applies to &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; media, and it &amp;lt;em&amp;gt;must&amp;lt;/em&amp;gt; be included in the light group as well. Keep in mind that if the scattering media also has an &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt; component, it &amp;lt;em&amp;gt;will&amp;lt;/em&amp;gt; be affected by light sources that are &amp;lt;em&amp;gt;not&amp;lt;/em&amp;gt; in the light group definition.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Light groups make it possible to create a &amp;lt;code&amp;gt;union&amp;lt;/code&amp;gt; of light sources and objects, where the objects in the group are illuminated by the lights in the group or, if so desired, by the global light sources as well. The light sources in the group can &amp;lt;em&amp;gt;only&amp;lt;/em&amp;gt; illuminate the objects that are in the group, this also applies to &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; media, and it &amp;lt;em&amp;gt;must&amp;lt;/em&amp;gt; be included in the light group as well. Keep in mind that if the scattering media also has an &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt; component, it &amp;lt;em&amp;gt;will&amp;lt;/em&amp;gt; be affected by light sources that are &amp;lt;em&amp;gt;not&amp;lt;/em&amp;gt; in the light group definition.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=6920&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Reference Migration Initial Load</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=6920&amp;oldid=prev"/>
		<updated>2012-03-15T19:07:21Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Reference Migration Initial Load&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:07, 15 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=6919&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Initial Load (TF)</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Light_Group&amp;diff=6919&amp;oldid=prev"/>
		<updated>2012-03-11T22:27:11Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Initial Load (TF)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Light Sources]]&lt;br /&gt;
&amp;lt;p&amp;gt;Light groups make it possible to create a &amp;lt;code&amp;gt;union&amp;lt;/code&amp;gt; of light sources and objects, where the objects in the group are illuminated by the lights in the group or, if so desired, by the global light sources as well. The light sources in the group can &amp;lt;em&amp;gt;only&amp;lt;/em&amp;gt; illuminate the objects that are in the group, this also applies to &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; media, and it &amp;lt;em&amp;gt;must&amp;lt;/em&amp;gt; be included in the light group as well. Keep in mind that if the scattering media also has an &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt; component, it &amp;lt;em&amp;gt;will&amp;lt;/em&amp;gt; be affected by light sources that are &amp;lt;em&amp;gt;not&amp;lt;/em&amp;gt; in the light group definition.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Light groups are for example useful when creating scenes in which some objects turn out to be too dark but the average light is exactly how it should be, as the light sources in the group do not contribute to the global lighting.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Syntax :&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
light_group {&lt;br /&gt;
  LIGHT_GROUP LIGHT  |&lt;br /&gt;
  LIGHT_GROUP OBJECT |&lt;br /&gt;
  LIGHT_GROUP&lt;br /&gt;
  [LIGHT_GROUP MODIFIER]&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
LIGHT_GROUP LIGHT:&lt;br /&gt;
  light_source | light_source IDENTIFIER&lt;br /&gt;
LIGHT_GROUP OBJECT: &lt;br /&gt;
  OBJECT | OBJECT IDENTIFIER&lt;br /&gt;
LIGHT_GROUP MODIFIER: &lt;br /&gt;
  global_lights BOOL | TRANSFORMATION&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;To illuminate objects in the group with the light from global light sources, add &amp;lt;code&amp;gt;global_lights on&amp;lt;/code&amp;gt; to the light group definition.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Light groups may be nested. In this case light groups inherit the light sources of the light group in which they are contained.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Light groups can be seen as a &amp;lt;code&amp;gt;union&amp;lt;/code&amp;gt; of an object with a &amp;lt;code&amp;gt;light_source&amp;lt;/code&amp;gt; and can be used with CSG.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Some examples of a simple light group:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#declare RedLight = &lt;br /&gt;
light_source {&lt;br /&gt;
  &amp;amp;lt;-500,500,-500&amp;amp;gt;&lt;br /&gt;
  rgb &amp;amp;lt;1,0,0&amp;amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
light_group {&lt;br /&gt;
  light_source {RedLight}&lt;br /&gt;
  sphere {0,1 pigment {rgb 1}}&lt;br /&gt;
  global_lights off&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A nested light group:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#declare L1 = &lt;br /&gt;
light_group {&lt;br /&gt;
  light_source {&amp;amp;lt;10,10,0&amp;amp;gt;, rgb &amp;amp;lt;1,0,0&amp;amp;gt;}&lt;br /&gt;
  light_source {&amp;amp;lt;0,0,-100&amp;amp;gt;, rgb &amp;amp;lt;0,0,1&amp;amp;gt;}&lt;br /&gt;
  sphere {0,1 pigment {rgb 1}}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
light_group {&lt;br /&gt;
  light_source {&amp;amp;lt;0,100,0&amp;amp;gt;, rgb 0.5}&lt;br /&gt;
  light_group {L1}&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Light groups with CSG:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
difference {&lt;br /&gt;
  light_group {&lt;br /&gt;
    sphere {0,1 pigment {rgb 1}}&lt;br /&gt;
    light_source {&amp;amp;lt;-100,0,-100&amp;amp;gt; rgb &amp;amp;lt;1,0,0&amp;amp;gt;}&lt;br /&gt;
    global_lights off&lt;br /&gt;
    }&lt;br /&gt;
  light_group {&lt;br /&gt;
    sphere {&amp;amp;lt;0,1,0&amp;amp;gt;,1 pigment {rgb 1}}&lt;br /&gt;
    light_source {&amp;amp;lt;100,100,0&amp;amp;gt; rgb &amp;amp;lt;0,0,1&amp;amp;gt;}&lt;br /&gt;
    global_lights off&lt;br /&gt;
    }&lt;br /&gt;
  rotate &amp;amp;lt;-45,0,0&amp;amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In the last example the result will be a sphere illuminated red, where the part that is differenced away is illuminated blue. The end result is comparable to the difference between two spheres with a different pigment.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>