File: create_attenuation.html

package info (click to toggle)
gamgi 0.17.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,236 kB
  • sloc: ansic: 166,847; xml: 116,171; makefile: 565; sh: 5
file content (62 lines) | stat: -rw-r--r-- 1,847 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<title>GAMGI Formats: Light Create</title>
<link rel="icon" type="image/png" href="../../icon/gamgi16.png"/>
<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
<link rel="stylesheet" type="text/css" href="../../css/notebook.css"/>
</head>

<body>

<h1>Light Create</h1>

<div id="notebook">
<ul>
<li><a href="create_type.html">Type</a></li>
<li><a href="create_color.html">Color</a></li>
<li><span>Attenuation</span></li>
</ul>
</div>

<div class="contents">

<h3>constant, linear, quadratic</h3>

Control the axial attenuation, defined only for positional
and spot lights. The axial attenuation factor is defined as:

<pre>
Axial Attenuation Factor = 1/(<b>constant</b> + <b>linear</b>*distance + <b>quadratic</b>*distance*distance)

Example: <b>&lt;light ... constant="1.0" linear="0.0" quadratic="0.0" radial="0.0"/></b> (default)
(defined in <b>GAMGI_MESA_LIGHT_CONSTANT</b>, <b>GAMGI_MESA_LIGHT_LINEAR</b>,
<b>GAMGI_MESA_LIGHT_QUADRATIC</b> and <b>GAMGI_MESA_LIGHT_RADIAL</b>)
Allowed values: positive real (optional)
</pre>

<h3>radial</h3>

Controls the radial attenuation, defined only for spot
lights. The radial attenuation factor is defined as:

<pre>
Radial Attenuation Factor = [max (0, vertex . direction)]**<b>radial</b>

Example: <b>&lt;light ... constant="1.0" linear="0.0" quadratic="0.0" radial="0.0"/></b> (default)
(defined in <b>GAMGI_MESA_LIGHT_CONSTANT</b>, <b>GAMGI_MESA_LIGHT_LINEAR</b>,
<b>GAMGI_MESA_LIGHT_QUADRATIC</b> and <b>GAMGI_MESA_LIGHT_RADIAL</b>)
Allowed values: positive real (optional)
</pre>

</div>

<div id="bottom">
<a href="../../index.shtml">Home</a>
</div>

</body>
</html>