<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=PointLight</id>
	<title>PointLight - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=PointLight"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=PointLight&amp;action=history"/>
	<updated>2026-04-22T00:35:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=PointLight&amp;diff=24&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:PointLightExampleCode}}  ==Inheritance== SceneNode  ==Static functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |PointLight |new() |Create a new Instance of the the PointLight |- |PointLight |new(Vec3 color, float radius) |Create a new Instance of the the PointLight |- |PointLight |new(Vec3 localP...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=PointLight&amp;diff=24&amp;oldid=prev"/>
		<updated>2025-07-05T13:02:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:PointLightExampleCode}}  ==Inheritance== &lt;a href=&quot;/index.php/SceneNode&quot; title=&quot;SceneNode&quot;&gt;SceneNode&lt;/a&gt;  ==Static functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |&lt;a href=&quot;/index.php/PointLight&quot; title=&quot;PointLight&quot;&gt;PointLight&lt;/a&gt; |&lt;a href=&quot;/index.php?title=PointLight:new()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;PointLight:new() (page does not exist)&quot;&gt;new&lt;/a&gt;() |Create a new Instance of the the PointLight |- |&lt;a href=&quot;/index.php/PointLight&quot; title=&quot;PointLight&quot;&gt;PointLight&lt;/a&gt; |&lt;a href=&quot;/index.php?title=PointLight:new(Vec3_color,_float_radius)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;PointLight:new(Vec3 color, float radius) (page does not exist)&quot;&gt;new&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec3&quot; title=&quot;Vec3&quot;&gt;Vec3&lt;/a&gt; color, float radius) |Create a new Instance of the the PointLight |- |&lt;a href=&quot;/index.php/PointLight&quot; title=&quot;PointLight&quot;&gt;PointLight&lt;/a&gt; |&lt;a href=&quot;/index.php?title=PointLight:new(Vec3_localPosition,_Vec3_color,_float_radius)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;PointLight:new(Vec3 localPosition, Vec3 color, float radius) (page does not exist)&quot;&gt;new&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec3&quot; title=&quot;Vec3&quot;&gt;Vec3&lt;/a&gt; localP...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:PointLightExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Inheritance==&lt;br /&gt;
[[SceneNode]]&lt;br /&gt;
&lt;br /&gt;
==Static functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|[[PointLight]]&lt;br /&gt;
|[[PointLight:new()|new]]()&lt;br /&gt;
|Create a new Instance of the the PointLight&lt;br /&gt;
|-&lt;br /&gt;
|[[PointLight]]&lt;br /&gt;
|[[PointLight:new(Vec3 color, float radius)|new]]([[Vec3]] color, float radius)&lt;br /&gt;
|Create a new Instance of the the PointLight&lt;br /&gt;
|-&lt;br /&gt;
|[[PointLight]]&lt;br /&gt;
|[[PointLight:new(Vec3 localPosition, Vec3 color, float radius)|new]]([[Vec3]] localPosition, [[Vec3]] color, float radius)&lt;br /&gt;
|Create a new Instance of the the PointLight&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec3]]&lt;br /&gt;
|[[PointLight:getColor()|getColor]]()&lt;br /&gt;
|Get the color of the [[light]].&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[PointLight:getRange()|getRange]]()&lt;br /&gt;
|Get the range of the [[light]].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:setColor(Vec3 color)|setColor]]([[Vec3]] color)&lt;br /&gt;
|Set the color of the [[light]].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:setRange(float maxRange)|setRange]](float maxRange)&lt;br /&gt;
|Set the range of the light effect.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:setCutOff(float value)|setCutOff]](float value)&lt;br /&gt;
|Set the cutof level on the light. value range (0,1), default=0.05. Higher value will give a stronger and more linear color fade.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:setVisible(bool visible)|setVisible]](bool visible)&lt;br /&gt;
|if pointlight should be visible.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:clearFlickerAndSinCurve()|clearFlickerAndSinCurve]]()&lt;br /&gt;
|Clear all values added to flicker and sin curve.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:clear()|clear]]()&lt;br /&gt;
|Clear all values pushed on queue with pushRangeChange&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:update()|update]]()&lt;br /&gt;
|force update&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:addFlicker(Vec3 colorChange, float minTime, float maxTime)|addFlicker]]([[Vec3]] colorChange, float minTime, float maxTime)&lt;br /&gt;
|Will add a flicker to the light. where the color change is +-colorChange and it changes every [minTIme,maxTime].&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:addSinCurve(Vec3 colorChange, float TimeBetweenLowHigh)|addSinCurve]]([[Vec3]] colorChange, float TimeBetweenLowHigh)&lt;br /&gt;
|Will add a shift in color in the shape of a sin curve over set time. The color change is +-colorChange&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:pushRangeChange(float changeRangeTo,float duration)|pushRangeChange]](float changeRangeTo,float duration)&lt;br /&gt;
|pushes the change to a queue. it will then do all changes sequentially. It will change the range to set value over the duration. range limit changeRangeTo&amp;gt;0.1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:pushVisible(bool visible)|pushVisible]](bool visible)&lt;br /&gt;
|pushes the change to a queue. it will then do all changes sequentially.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[PointLight:setAmplitude(float amplitude)|setAmplitude]](float amplitude)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>