Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > c936229ef0138f42857f36beadbeda30 > files > 195

qt3d5-doc-5.12.2-2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmlextramaterials.qdoc -->
  <title>GoochMaterial QML Type | Qt 3D 5.12.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-qml.html">QML Types</a></td><td >GoochMaterial QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qt3d-index.html">Qt 5.12.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">GoochMaterial QML Type</h1>
<span class="subtitle"></span>
<!-- $$$GoochMaterial-brief -->
<p>The <a href="qml-qt3d-extras-goochmaterial.html">GoochMaterial</a> provides a material that implements the Gooch shading model, popular in CAD and CAM applications. <a href="#details">More...</a></p>
<!-- @@@GoochMaterial -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt3D.Extras 2.12</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.7</td></tr></table></div><ul>
<li><a href="qml-qt3d-extras-goochmaterial-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#alpha-prop">alpha</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#beta-prop">beta</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#cool-prop">cool</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#diffuse-prop">diffuse</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#shininess-prop">shininess</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#specular-prop">specular</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-goochmaterial.html#warm-prop">warm</a></b></b> : color</li>
</ul>
<!-- $$$GoochMaterial-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.</p>
<p>The Gooch lighting model is explained fully in the <a href="http://www.cs.northwestern.edu/~ago820/SIG98/abstract.html">original Gooch paper</a>. The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment's normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.</p>
<p>This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.</p>
<!-- @@@GoochMaterial -->
<h2>Property Documentation</h2>
<!-- $$$alpha -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="alpha-prop">
<td class="tblQmlPropNode"><p>
<a name="alpha-prop"></a><span class="name">alpha</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.</p>
</div></div><!-- @@@alpha -->
<br/>
<!-- $$$beta -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="beta-prop">
<td class="tblQmlPropNode"><p>
<a name="beta-prop"></a><span class="name">beta</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.</p>
</div></div><!-- @@@beta -->
<br/>
<!-- $$$cool -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="cool-prop">
<td class="tblQmlPropNode"><p>
<a name="cool-prop"></a><span class="name">cool</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current cool color.</p>
</div></div><!-- @@@cool -->
<br/>
<!-- $$$diffuse -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="diffuse-prop">
<td class="tblQmlPropNode"><p>
<a name="diffuse-prop"></a><span class="name">diffuse</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current diffuse color.</p>
</div></div><!-- @@@diffuse -->
<br/>
<!-- $$$shininess -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="shininess-prop">
<td class="tblQmlPropNode"><p>
<a name="shininess-prop"></a><span class="name">shininess</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.</p>
</div></div><!-- @@@shininess -->
<br/>
<!-- $$$specular -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="specular-prop">
<td class="tblQmlPropNode"><p>
<a name="specular-prop"></a><span class="name">specular</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current specular color.</p>
</div></div><!-- @@@specular -->
<br/>
<!-- $$$warm -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="warm-prop">
<td class="tblQmlPropNode"><p>
<a name="warm-prop"></a><span class="name">warm</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the current warm color.</p>
</div></div><!-- @@@warm -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>