diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-11 03:17:43 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-11 03:17:43 +0000 |
commit | e99c5a5995b8f00e46f218f48df269ab3ef27071 (patch) | |
tree | 9651a6f6add6d460bc1637af1afcb122b29b7053 /o3d/plugin/idl/state.idl | |
parent | e37b706d4a28b85d4de081a4cf12fc66755d0ff9 (diff) | |
download | chromium_src-e99c5a5995b8f00e46f218f48df269ab3ef27071.zip chromium_src-e99c5a5995b8f00e46f218f48df269ab3ef27071.tar.gz chromium_src-e99c5a5995b8f00e46f218f48df269ab3ef27071.tar.bz2 |
Add polygon offset doc
Review URL: http://codereview.chromium.org/155385
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/idl/state.idl')
-rw-r--r-- | o3d/plugin/idl/state.idl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/o3d/plugin/idl/state.idl b/o3d/plugin/idl/state.idl index 9386208..af58559 100644 --- a/o3d/plugin/idl/state.idl +++ b/o3d/plugin/idl/state.idl @@ -190,8 +190,9 @@ namespace o3d { <tr><td>o3d.PointSpriteEnable</td><td>ParamBoolean</td> <td>default = false</td></tr> <tr><td>o3d.PointSize</td><td>ParamFloat</td><td>TBD</td></tr> - <tr><td>o3d.PolygonOffset1</td><td>ParamFloat<td>TBD</td></tr> - <tr><td>o3d.PolygonOffset2</td><td>ParamFloat<td>TBD</td></tr> + <tr><td>o3d.PolygonOffset1</td><td>ParamFloat, polygon offset slope factor<td>0</td></tr> + <tr><td>o3d.PolygonOffset2</td><td>ParamFloat, polygon offset bias (in + resolvable units)<td>0</td></tr> <tr><td>o3d.FillMode</td><td>ParamInteger, State.Fill</td> <td>default = State.SOLID</td></tr> <tr><td>o3d.ZEnable</td><td>ParamBoolean</td> @@ -262,6 +263,15 @@ namespace o3d { <td>default = State.BLEND_ADD</td></tr> </table> + Note: Polygon offset is computed with the following formula: + \code + totalOffset = PolygonOffset1 * slope + PolygonOffset2 * r + \endcode + Slope is the maximum difference in depth between 2 adjacent pixels of the + polygon. r is the smallest value that would fail the NOTEQUAL test against + 0. + Typical useful values to layer a polygon on top of another one are -1.0 for + each of PolygonOffset1 and PolygonOffset2. %] [nocpp, userglue] Param? GetStateParam(String state_name); |